Skip to content

Commit

Permalink
SELinux: trivial, remove unneeded local variable
Browse files Browse the repository at this point in the history
Hello,

Remove unneeded local variable:

    struct avtab_node *newnode

Signed-off-by: Vesa-Matti Kari <[email protected]>
Signed-off-by: James Morris <[email protected]>
  • Loading branch information
Vesa-Matti J Kari authored and James Morris committed Aug 5, 2008
1 parent df4ea86 commit 0c0e186
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions security/selinux/ss/avtab.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 0c0e186

Please sign in to comment.