From patchwork Sun Aug 13 14:48:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 9897891 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2CE4060244 for ; Sun, 13 Aug 2017 14:48:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0B1EA2860F for ; Sun, 13 Aug 2017 14:48:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F3C3528614; Sun, 13 Aug 2017 14:48:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1D5012860F for ; Sun, 13 Aug 2017 14:48:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752060AbdHMOse (ORCPT ); Sun, 13 Aug 2017 10:48:34 -0400 Received: from mout.web.de ([212.227.15.14]:50419 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752058AbdHMOsd (ORCPT ); Sun, 13 Aug 2017 10:48:33 -0400 Received: from [192.168.1.2] ([92.228.32.17]) by smtp.web.de (mrweb003 [213.165.67.108]) with ESMTPSA (Nemesis) id 0LcPRO-1dIFjf1prC-00juty; Sun, 13 Aug 2017 16:48:13 +0200 Subject: [PATCH 3/4] selinux: Delete an unnecessary return statement in ebitmap_destroy() From: SF Markus Elfring To: linux-security-module@vger.kernel.org, selinux@tycho.nsa.gov, Alexey Dobriyan , Daniel Jurgens , Eric Paris , James Morris , Junil Lee , Paul Moore , "Serge E. Hallyn" , Stephen Smalley , William Roberts Cc: LKML , kernel-janitors@vger.kernel.org References: Message-ID: <230e56f6-3dd9-5e6e-fa06-df22d61e0831@users.sourceforge.net> Date: Sun, 13 Aug 2017 16:48:10 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Language: en-GB X-Provags-ID: V03:K0:HuiZEx1eSX+kphhBz10EdJIBBv9uwuOLDar0CuocOzGZ4qVqbmd 5P986GNS/2tNCVlLZ/J9J5/JX69Qx48qI42ZnwDVMK99r3UCbTxcl5gUiZo5zuxj86Zwwqf t8RxTH9oVfpFkPytQT51i0rMPv/9HS84ktjJ6QV9HtVVjaedf5qVrsDgvnBk6S2vqjIIa6I RBjbcSNO3y5g+u9cJzt5w== X-UI-Out-Filterresults: notjunk:1; V01:K0:FUV/iky2dyY=:fJ5j5L/BCmcwzC6FRdQdxF lJs8pVP/iII3edW1UfuKq5msCySkj/BuL2xqVm8X+olgWxO7yQ3zl63mDmtyGUD+IljgKZIx2 rEs5XPyx/UWb24CdzQcVVzz5k1m8dRV513j0SB/biR18UHRvMelbqxSv7RAzH4jrfjPZ5UOo3 4EYk4srPGHArQaArS4D+VaONp2MmTYvHRkEHIAmyOhU2oVwa/Kl6FI4XI/EdpNNee0n1okcfT QmXwKKaMcaGDyadl0hjMp1GcoNzEzcN5yLfoyOtBNk2Nr8qVCJ58jQ7oq3CGv8I2rsD9DA6wB LXmyZVVbdw0YZT8XAqfZIWmvgTsZWwXEG25KjybTmU1Oe/cgxwcHzahHE5rgtBgX+pyGlVGQ3 LzrF8ti06JWEWBVtRrUXBVtEWsOS9ukZhcklWLVF7HleplfhBHzSdRk0MZGjD2hh9jWh1tnA6 oIzWXHjeT5mLhS0eMzBURYTbvGBQHSHg1PzUGBUm769jkfTWwPAAK+vQ8B7XbMCa2ZSKnDOPQ uqlrGAIPyF/IBkhytGKOhJgsPE8VlrjI/duMCELBg6bLowr+cnr3HxPyBWB4yTHHM/ii9Aef4 jEbp3t5kzkF3wARvt5DtWeRAXBmWze2hbo31Dw/MwcboEVHvVYRZM1NGJB17BevaQAWKqtWCg x1Vn7UDN0gbpswzIDSd/E2U1FK8QgA9JBL+0p8ezQuTsH3SCByqV9jp/MjSPceBCuNYOw3evl EHyTDMh0bbnTHWgWXEND3dQG5SivWyasHiuwc2DCp4vbtDqQsELGh73NIFAV3hQsqcvkykaix LGIdotssh0RAl64t0StAnfXvBiITLO8a4QC0RnckZNxaoqTUPg= Sender: owner-linux-security-module@vger.kernel.org Precedence: bulk List-ID: X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Sun, 13 Aug 2017 15:50:26 +0200 The script "checkpatch.pl" pointed information out like the following. WARNING: void function return statements are not generally useful Thus remove such a statement in the affected function. Signed-off-by: Markus Elfring --- security/selinux/ss/ebitmap.c | 1 - 1 file changed, 1 deletion(-) diff --git a/security/selinux/ss/ebitmap.c b/security/selinux/ss/ebitmap.c index 03581d7ef817..697bd748760a 100644 --- a/security/selinux/ss/ebitmap.c +++ b/security/selinux/ss/ebitmap.c @@ -339,7 +339,6 @@ void ebitmap_destroy(struct ebitmap *e) e->highbit = 0; e->node = NULL; - return; } int ebitmap_read(struct ebitmap *e, void *fp)