]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
selinux: Delete an unnecessary variable initialisation in range_read()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 14 Jan 2017 19:40:12 +0000 (20:40 +0100)
committerPaul Moore <paul@paul-moore.com>
Thu, 23 Mar 2017 22:16:55 +0000 (18:16 -0400)
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 <elfring@users.sourceforge.net>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/ss/policydb.c

index 6c093018ae8d1e8b3bfeb12ec0c3738fbb4b4974..a8389396e9a95331d0f53c4ba0fc1fbadcfc1760 100644 (file)
@@ -1841,7 +1841,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];