diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2012-11-20 01:53:58 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-11-20 19:48:09 +0100 |
commit | 973b1b9a454c738edbb2eb8d4596014b575dc15c (patch) | |
tree | aa4c5d2d6ff737fe3b10a35a0803bc15be31cbd1 /net/caif | |
parent | bnx2x: Remove duplicate inclusion of bnx2x_hsi.h (diff) | |
download | linux-973b1b9a454c738edbb2eb8d4596014b575dc15c.tar.xz linux-973b1b9a454c738edbb2eb8d4596014b575dc15c.zip |
caif: Remove redundant null check before kfree in cfctrl.c
kfree on a null pointer is a no-op.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Sjur Brændeland <sjur.brandeland@stericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/caif')
-rw-r--r-- | net/caif/cfctrl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/caif/cfctrl.c b/net/caif/cfctrl.c index 44f270fc2d06..a376ec1ac0a7 100644 --- a/net/caif/cfctrl.c +++ b/net/caif/cfctrl.c @@ -515,8 +515,7 @@ static int cfctrl_recv(struct cflayer *layer, struct cfpkt *pkt) client_layer : NULL); } - if (req != NULL) - kfree(req); + kfree(req); spin_unlock_bh(&cfctrl->info_list_lock); } |