Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

SELinux: trivial, remove unneeded local variable

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>

authored by

Vesa-Matti J Kari and committed by
James Morris
0c0e186f df4ea865

+2 -4
+2 -4
security/selinux/ss/avtab.c
··· 98 98 avtab_insert_nonunique(struct avtab *h, struct avtab_key *key, struct avtab_datum *datum) 99 99 { 100 100 int hvalue; 101 - struct avtab_node *prev, *cur, *newnode; 101 + struct avtab_node *prev, *cur; 102 102 u16 specified = key->specified & ~(AVTAB_ENABLED|AVTAB_ENABLED_OLD); 103 103 104 104 if (!h || !h->htable) ··· 122 122 key->target_class < cur->key.target_class) 123 123 break; 124 124 } 125 - newnode = avtab_insert_node(h, hvalue, prev, cur, key, datum); 126 - 127 - return newnode; 125 + return avtab_insert_node(h, hvalue, prev, cur, key, datum); 128 126 } 129 127 130 128 struct avtab_datum *avtab_search(struct avtab *h, struct avtab_key *key)