tipc: remove pointless check for NULL prior to kfree
It is acceptable to call kfree() with NULL, so these checks are not serving any useful purpose. Signed-off-by: Allan Stephens <Allan.Stephens@windriver.com> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
886ef52a8c
commit
e83504f724
@@ -240,9 +240,7 @@ static void node_is_down(struct publication *publ)
|
||||
publ->type, publ->lower, publ->node, publ->ref, publ->key);
|
||||
}
|
||||
|
||||
if (p) {
|
||||
kfree(p);
|
||||
}
|
||||
kfree(p);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user