From patchwork Sun Jan 15 15:22:11 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: 9517517 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 B5D75607D4 for ; Sun, 15 Jan 2017 15:22:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A88982849A for ; Sun, 15 Jan 2017 15:22:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9A6F1284A0; Sun, 15 Jan 2017 15:22: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 42C9C2849A for ; Sun, 15 Jan 2017 15:22:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751222AbdAOPW2 (ORCPT ); Sun, 15 Jan 2017 10:22:28 -0500 Received: from mout.web.de ([212.227.15.4]:63538 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751054AbdAOPW1 (ORCPT ); Sun, 15 Jan 2017 10:22:27 -0500 Received: from [192.168.1.2] ([78.49.147.199]) by smtp.web.de (mrweb003 [213.165.67.108]) with ESMTPSA (Nemesis) id 0Lvjoa-1cW2np163o-017Xvv; Sun, 15 Jan 2017 16:22:13 +0100 Subject: [PATCH 22/46] selinux: Delete an unnecessary variable initialisation in range_read() 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: Date: Sun, 15 Jan 2017 16:22:11 +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:4iK7z+DGEA0+NidbCDTEdIVXatu63v0wcYMG57wjQDqXQoDVZ3E 9HqYQOc6yIRbXI4X7TNSear8wimCASBH5hXdYLfUNJWZzU77vQGRPTkVMf//Qdv33auyQJZ S4m+8iRK7MKUkOlksHuhIXT7OxuG4j6J2n3vNx6gIpXnzCGRntrFSdtd5FADepkirnmaUng czcFtgEw1Sygfyk7YkaBQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:b0al2NeDKTU=:9srB8W+C5B5siRGQL175Ss A3sl8W2K4YUDkpQB+mHw3J9NW9Nz1Y3Yxo8Y9U5UmzAU4LKnKZkAb5dH/gmOe45+LVhq/Lt1F iVcxoAzD7imLpWbaHGjDVtTgzUUJKMzVAVr5KX5MVCkcWUwSN/7Plck2NZ92K1l6wi899fPEU 1yJgKD2KA5geOZju8lZh0LvWxSIYZhwqx9/1vTF37aWAtqgoLWKD6V6yDmmNVI56FxB+stUNJ hSO7cBhXap1yphtzNOJGbgOEbXvw41U3asULXpqpzTHwse0EAy1uiiGLwoMAXUnDL4y1l4IsR JvGQAf7k/EADiNLsyU2bUu4WwW5bXvZd/ds09A1JUijnJonxFoHtCWNtn9GKBtuDmqWx/bCZ4 tO352V9Odvg0mnjQU53iJlT5dS/Uu3ImY3NiB+kpLPfwCq0u483ms8rztrNGSKIi1hFppR4QD BIycDOzYSWcBVVnKERuZlDLvn/CBLd2Y72fn1+JStCkdJ4m6Y/1D04KSJsxmgtq9STBOzLey9 gIuFkx9bMepX1tnRSj4JE25IUlTT43jbSfgchkuRFJGzgznpdp9ppW9GZfrHscebGk0uXx4F6 6ybITxCRn8r/Ag1apy7WKa1ZjwvVSa+7VmzbWPBjT5XCv+gzTXlArx8ad3MHOV/wu3dD0sUaQ 6z1oscji1K25rhrIiiRCCqCMdt6hG7ByncAEfkoa6zPsvePr1unvh4lLo5Kc9UXO35RFICp0g Ful/DEmjSbpBtRZtcvOv7JqHjbrZdYOSa1q5GFmSAGdTBy5Pc3MRcD/cWaD4+ua1oQFzEZGlp XDsbxUT 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 20:40:12 +0100 The local variable "rt" will be set to an appropriate pointer a bit later. Thus omit the explicit initialisation at the beginning which became unnecessary with a previous update step. Signed-off-by: Markus Elfring --- security/selinux/ss/policydb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/selinux/ss/policydb.c b/security/selinux/ss/policydb.c index 0d2f64558c0a..6121a26ada64 100644 --- a/security/selinux/ss/policydb.c +++ b/security/selinux/ss/policydb.c @@ -1839,7 +1839,7 @@ u32 string_to_av_perm(struct policydb *p, u16 tclass, const char *name) static int range_read(struct policydb *p, void *fp) { - struct range_trans *rt = NULL; + struct range_trans *rt; struct mls_range *r = NULL; int i, rc; __le32 buf[2];