diff options
author | Allan Stephens <Allan.Stephens@windriver.com> | 2010-12-31 13:59:30 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-01-01 16:57:55 -0500 |
commit | e83504f72456809cdbdbc91700d3ba6370c9da1c (patch) | |
tree | 1391c0d5a31ea1f907d82ce43efb9a73423167a9 /net/tipc/name_distr.c | |
parent | 886ef52a8ce6930a9d0c58267d5b5038ac3e8d30 (diff) |
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>
Diffstat (limited to 'net/tipc/name_distr.c')
-rw-r--r-- | net/tipc/name_distr.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/tipc/name_distr.c b/net/tipc/name_distr.c index 376a30b9fd72..a6c989fd4988 100644 --- a/net/tipc/name_distr.c +++ b/net/tipc/name_distr.c | |||
@@ -240,9 +240,7 @@ static void node_is_down(struct publication *publ) | |||
240 | publ->type, publ->lower, publ->node, publ->ref, publ->key); | 240 | publ->type, publ->lower, publ->node, publ->ref, publ->key); |
241 | } | 241 | } |
242 | 242 | ||
243 | if (p) { | 243 | kfree(p); |
244 | kfree(p); | ||
245 | } | ||
246 | } | 244 | } |
247 | 245 | ||
248 | /** | 246 | /** |