]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
SELinux: trivial, remove unneeded local variable
authorVesa-Matti J Kari <vmkari@cc.helsinki.fi>
Sun, 20 Jul 2008 23:50:20 +0000 (02:50 +0300)
committerJames Morris <jmorris@namei.org>
Tue, 5 Aug 2008 00:55:38 +0000 (10:55 +1000)
Hello,

Remove unneeded local variable:

    struct avtab_node *newnode

Signed-off-by: Vesa-Matti Kari <vmkari@cc.helsinki.fi>
Signed-off-by: James Morris <jmorris@namei.org>
security/selinux/ss/avtab.c

index a1be97f8beea0ac0aa0fa7519801128b6eb54b62..e8ae812d6af7302a05d25854278f95326d15668f 100644 (file)
@@ -98,7 +98,7 @@ struct avtab_node *
 avtab_insert_nonunique(struct avtab *h, struct avtab_key *key, struct avtab_datum *datum)
 {
        int hvalue;
-       struct avtab_node *prev, *cur, *newnode;
+       struct avtab_node *prev, *cur;
        u16 specified = key->specified & ~(AVTAB_ENABLED|AVTAB_ENABLED_OLD);
 
        if (!h || !h->htable)
@@ -122,9 +122,7 @@ avtab_insert_nonunique(struct avtab *h, struct avtab_key *key, struct avtab_datu
                    key->target_class < cur->key.target_class)
                        break;
        }
-       newnode = avtab_insert_node(h, hvalue, prev, cur, key, datum);
-
-       return newnode;
+       return avtab_insert_node(h, hvalue, prev, cur, key, datum);
 }
 
 struct avtab_datum *avtab_search(struct avtab *h, struct avtab_key *key)