From patchwork Sun Jan 15 15:06: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: 9517461 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 4935660571 for ; Sun, 15 Jan 2017 15:06:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3C1FF28428 for ; Sun, 15 Jan 2017 15:06:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3043F28445; Sun, 15 Jan 2017 15:06:29 +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 C9D9828428 for ; Sun, 15 Jan 2017 15:06:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750849AbdAOPG1 (ORCPT ); Sun, 15 Jan 2017 10:06:27 -0500 Received: from mout.web.de ([212.227.15.4]:58013 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750831AbdAOPG0 (ORCPT ); Sun, 15 Jan 2017 10:06:26 -0500 Received: from [192.168.1.2] ([78.49.147.199]) by smtp.web.de (mrweb002 [213.165.67.108]) with ESMTPSA (Nemesis) id 0Lu5BO-1cc5SM3FaA-011VV3; Sun, 15 Jan 2017 16:06:13 +0100 Subject: [PATCH 08/46] selinux: Delete an unnecessary return statement in policydb_destroy() To: linux-security-module@vger.kernel.org, selinux@tycho.nsa.gov, Eric Paris , James Morris , Paul Moore , "Serge E. Hallyn" , Stephen Smalley , William Roberts References: Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Message-ID: <1370e095-265d-9ca5-8184-b975fc75ead7@users.sourceforge.net> Date: Sun, 15 Jan 2017 16:06:10 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: X-Provags-ID: V03:K0:POijGdMgFdUkrLDwb4TTjdJZC+eqOPEE5VaQCwgPlF1X+BLwjBO opMhGtDduCzmklrbvXqs7iI4PdQfJ3cpyLGXsuVD7POE3iPtRFgGsteWnKqZZOIHANgzkhB ho5rc7FJqWL8A1rAKSBHnThRWUMg7hSoMFpIb0rSg+MKTkQok5b2HZG4lfTckfgWHZ9wQ8e 4RdV/H/dGj/Uo997S5PTw== X-UI-Out-Filterresults: notjunk:1; V01:K0:MKF9K9SxzUc=:0cBbiRH7+eHSj/wuYwD75V rhahKqEVPdN8R8oGNYUD2RJUoTfG39DDcRXjAfHWl9iO/ZG0bTYD0wQopFzMMMqSHDzc1Nzlt jNRcKJmtC4d/xwJERNTzg0w02cwRk9iu0ofE4MsX3+qxui3B7X3HVod6iab+bIBHMRF4R+KQB oF/apiLlqUbL0oERdz+6cShpj6wZK9bvyyXxeaf9NEJmylE0VmGcZdKE2ttduzaoZQZTW4tX5 PP1tyIcCcv7U3yUV/5F6kgEvt5bR889sMb0hFAkPk5nkyDydGBmJG/padLXf3AKRXoj2joMep 9VULNj31Hboe5JBipEX9COXKCnBr7yrHWbmKSOIzV0VnpqKzyEQhjTi/0uOngpYTfvr3dFdxW ZcKF8XsDxPETjHSRPGz2o1+sNXrHa9HJXUeT8cFkwF7/yCFQQOjjkDmVPKhZsqxkCxe93Y4v4 o1cba8/hUWmAcIuEbS2aO5d7ghNRtkhu5NszIoiSLjkn6ABqTTCajzfvdFhwJzQvDl9l8YWsl FBlYvLNq3NxBTDphRC9C3mjRQhJRVvQ1MQzIFPzFzXBQjk4Y8DExMQXJqdgyeC9imdGC7n71A SoC+V7C8ArRqp7uQS1LNswHkKWIGBb0dcrUgRwTo/U9Bb1HtDXHrv0i2dm/n1nkqcmwzlWhy9 WUn77HB+opEjn5g27gsellXDtG85mEB9br0bEF4hOjq6lx+f+5/ekSc5RByu09g6vwbYI4fJu MGRanQlAfDrMP3P/ANncckWo61Sa9BBwRBeXqvM85I68C5Idxj9J4oyXXKyUnnsq2oP6r6umE ggBmAjl Sender: owner-linux-security-module@vger.kernel.org Precedence: bulk List-ID: X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Sat, 14 Jan 2017 14:00:02 +0100 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/policydb.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/security/selinux/ss/policydb.c b/security/selinux/ss/policydb.c index 4d4ba1ad910d..fe8992382a71 100644 --- a/security/selinux/ss/policydb.c +++ b/security/selinux/ss/policydb.c @@ -878,8 +878,6 @@ void policydb_destroy(struct policydb *p) ebitmap_destroy(&p->filename_trans_ttypes); ebitmap_destroy(&p->policycaps); ebitmap_destroy(&p->permissive_map); - - return; } /*