Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752199AbdHMOoG (ORCPT ); Sun, 13 Aug 2017 10:44:06 -0400 Received: from mout.web.de ([212.227.15.4]:63682 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750955AbdHMOoE (ORCPT ); Sun, 13 Aug 2017 10:44:04 -0400 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 From: SF Markus Elfring Subject: [PATCH 0/4] SELinux: Fine-tuning for some function implementations Cc: LKML , kernel-janitors@vger.kernel.org Message-ID: Date: Sun, 13 Aug 2017 16:43:15 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:4LBps3UuTdEHiHXf8+5Wm+uXFmwfcSGEmU3cJwQEA+fMBx/Vigg aR4XZORLBCHEOirR4L22v0vmxQS6mzpNSb9MiNme44IrQsKhXKsaUF4X9MQIf4fnvo9euDc WiSGGf2Fwxtme09Lv0qn0b0bYDOX6WkssMd8EV6CDoIjZfhMfO0c+MpVOmSuuxS1qVHpCZv g9KDCX0XRSiql2uBk2hJg== X-UI-Out-Filterresults: notjunk:1;V01:K0:Xizy0ITDxDs=:wXZA+eyPlLTpcJ74Wmt+rG SJlSuLiecgn7zcPVlma2Oqw/SXEr7qINdUPb0UPEcUYGwpxBF0LAUHZ0DzKt547Vko62Hx1t0 YM8DHUO8DOvBSm7G2Bffch6dSiSrGgV7GPSv7gW8PT6RBVIM8afiJ/JoPEvqmCfRpgjeDAmZo 5ENxRv/BHLrsWWLZFHSdZZU0mC5y9CXftPG7FEbUyj1uRHAxlCYkGwprOo7QMYp+FMMFiTx9m OAWRhby3x1jmmUAGxzBIaUciCwY7D9Qswk28CxHWm9vQgsZyPnxk2+yc+klMmuQjdfIaFFdJh gu9rnUPy8V01MN8dKMQ+zJFVi2bIhmNxH1dbFU5wUWTnyoHplMa/+Yhnj8vLTXPN1Bi3lp3bA /7UmMiwwa1TPvbta8LEI3ca/e4gbggQv4z8eLgEGmfm4P3DJFtBy+8Sg8xmZo+VRWgyf74Caj 5eKTun0VEFrjUShInZnGoWAnBDfbeiD24pskXtBiymueJEIhyIs6+QdlvZcNG+reiLvoEYh5x IfDjbzrS6/P5aP+sx3MGGqfpYaDk0pc4uAi9NvZyRfnMC9BIM2+HCbQGxuS9YZt6gq7tANPy9 f1fMNcjRwTPGzFZ8ACINxBSV/3TN3QazptZoeCt4dhw3k6DX53K7u2r/Qe+hMAlN7bRI9c2oq yT6xGIyOLd7bKDw4akUYKQ2Vix3aFmzgNXf0SpLocI20F//ED/8eU36wIu/oZ+LAb1u0rnJOT CfvdRY903WRTto8Tkzxj5ttNoqZHt4a5Pk3tVWMubJhL6NWbVlAYpWvVK9bg5fZGYBxnvGRIZ gTnHhDV5WA8QQP8XMyk3jJNXT2Hpi5xif6XAY08UKHy6x1lwAg= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 655 Lines: 20 From: Markus Elfring Date: Sun, 13 Aug 2017 16:25:43 +0200 A few update suggestions were taken into account from static source code analysis. Markus Elfring (4): Delete eight unnecessary variable assignments Adjust jump targets in ebitmap_read() Delete an unnecessary return statement in ebitmap_destroy() Adjust five checks for null pointers security/selinux/selinuxfs.c | 1 - security/selinux/ss/avtab.c | 2 -- security/selinux/ss/ebitmap.c | 53 +++++++++++++++++++----------------------- security/selinux/ss/policydb.c | 10 ++------ 4 files changed, 26 insertions(+), 40 deletions(-) -- 2.14.0