drivers/net: Remove pointless checks for NULL prior to calling kfree()
This commit is contained in:
parent
7380a78a97
commit
b4558ea93d
32 changed files with 90 additions and 174 deletions
|
@ -136,8 +136,7 @@ static __inline__ void nr_node_put(struct nr_node *nr_node)
|
|||
static __inline__ void nr_neigh_put(struct nr_neigh *nr_neigh)
|
||||
{
|
||||
if (atomic_dec_and_test(&nr_neigh->refcount)) {
|
||||
if (nr_neigh->digipeat != NULL)
|
||||
kfree(nr_neigh->digipeat);
|
||||
kfree(nr_neigh->digipeat);
|
||||
kfree(nr_neigh);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue