From patchwork Sun Jan 15 14:58:16 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: 9517435 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 0955360571 for ; Sun, 15 Jan 2017 14:58:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F00712841C for ; Sun, 15 Jan 2017 14:58:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E280228411; Sun, 15 Jan 2017 14:58:36 +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 4EE6828411 for ; Sun, 15 Jan 2017 14:58:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751057AbdAOO6f (ORCPT ); Sun, 15 Jan 2017 09:58:35 -0500 Received: from mout.web.de ([212.227.15.4]:52102 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751052AbdAOO6e (ORCPT ); Sun, 15 Jan 2017 09:58:34 -0500 Received: from [192.168.1.2] ([78.49.147.199]) by smtp.web.de (mrweb004 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MMIdp-1cN0ZL0Hin-007zTw; Sun, 15 Jan 2017 15:58:18 +0100 Subject: [PATCH 02/46] selinux: Delete an unnecessary return statement in cond_compute_av() 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: <86979267-24ac-ce16-a150-43677ac78a0b@users.sourceforge.net> Date: Sun, 15 Jan 2017 15:58:16 +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:F9EvI1sa5DX5X2Kzla8BkCqkqU+pWWil0VW2ekjTaYlFuimzEIE Kw11/uFEIVcks5bX3pmS0n+z6yfuL0/wR1BvCj0m5/E2HVQOxy2lJCtKZCVuxrhWLeD18m2 CN4MuZgIaBA2vUVoKJWrMWaDKxu++K5maIbAQFEZ/gyXTnDvgBqCDTPskEp0J0tcg/AUeBi 6OddIUKrWVJVoszPjrQsA== X-UI-Out-Filterresults: notjunk:1; V01:K0:NRed3RaxYuk=:cAfHkbp1s91GbYGSuV6E5Z ucwZKHC3/hcb0hhBUL7z6CySBxrY6Hz1ZLLYfIzW5N8Qc7Abk4w0ZSEYWdluiLlMQ3UswSfX0 dwwzRIhVFUpKoowSLyVkq1hqNC2Yf4+FmIWShy4TcMREVMswyMQM/ez3B/Ox5l2H4FrmtcSKX rPhhp99KVRFIJD8GRag9NEcIqN37W7lQ5LXZdNchLK2C8w8ysm7GJJQmwwZpJZtakuv0yX3bN lUqEhFloJ06R1REBLoegGdIdEDkVgdZY15cLy8IKk8RzoPs1FM1ma1RBPukoPPsn9IXC6HLIH FBPBQq7n61P8qhODd7RSPq1cokH7op//cGTS4sY8KswI6WPSE3dfzJay439jEktc6gZ9ZndkQ BGVPeEouWE/GPB4sFIvWWo7XfzvpKyZPdQKKDL+mXpbQH6ma7w228F66ifOH6ujc/NaoXpjHN X6sltzdA1d6rcCAZPQ3KFcmcceTvuWisHRAgv7MGXOq3EmFJa5lA1yIvxcfjIPwkG4nq/mvfh k8XfWDoeEI34mVYA8iXt6pVZb6fYE5YXUWe5oQF+q0dpRx3f7FKyrSv4vblJDuH9Z3CcQrWh+ +EkEpHt47oPI4n1Rmk5jmVJ4GhGhVxtyXbT8e0n8CARKxgMqLiJgiT7zCh6jACmazb+MJAMQ3 2DdjlMk7eVlozMKMiQCaBIL3ek2xtdIP9eCA5c1zOQeJfzRPShocYpdK6CBmysiiod3tN52Gz /J1/zxghjpI489UtO01QxQZ4mLKTs7MCft+AAvpXgjjKeRykfUce3Rg7vi9xNodjA4HIY+sl1 agdguWP 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 11:00:23 +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/conditional.c | 1 - 1 file changed, 1 deletion(-) diff --git a/security/selinux/ss/conditional.c b/security/selinux/ss/conditional.c index fcfab2635c11..4a3bf29f7565 100644 --- a/security/selinux/ss/conditional.c +++ b/security/selinux/ss/conditional.c @@ -664,5 +664,4 @@ void cond_compute_av(struct avtab *ctab, struct avtab_key *key, (node->key.specified & AVTAB_XPERMS)) services_compute_xperms_drivers(xperms, node); } - return; }