selinux: Delete an unnecessary variable assignment in filename_trans_read()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 14 Jan 2017 18:02:42 +0000 (19:02 +0100)
committerPaul Moore <paul@paul-moore.com>
Thu, 23 Mar 2017 22:08:05 +0000 (18:08 -0400)
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 <elfring@users.sourceforge.net>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/ss/policydb.c

index 4390558..7131251 100644 (file)
@@ -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;