From: Markus Elfring Date: Sat, 14 Jan 2017 18:02:42 +0000 (+0100) Subject: selinux: Delete an unnecessary variable assignment in filename_trans_read() X-Git-Tag: v4.12-rc1~123^2~6^2~18 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=02fcef27cc908e22ddb68d30ad1b7fd9ac3a1c24;p=linux.git selinux: Delete an unnecessary variable assignment in filename_trans_read() The local variable "ft" was set to a null pointer despite of an immediate reassignment. Thus remove this statement from the beginning of a loop. Signed-off-by: Markus Elfring Signed-off-by: Paul Moore --- diff --git a/security/selinux/ss/policydb.c b/security/selinux/ss/policydb.c index 4390558464c5..7131251be628 100644 --- a/security/selinux/ss/policydb.c +++ b/security/selinux/ss/policydb.c @@ -1929,7 +1929,6 @@ static int filename_trans_read(struct policydb *p, void *fp) nel = le32_to_cpu(buf[0]); for (i = 0; i < nel; i++) { - ft = NULL; otype = NULL; name = NULL;