diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2012-11-19 19:53:58 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-11-20 13:48:09 -0500 |
commit | 973b1b9a454c738edbb2eb8d4596014b575dc15c (patch) | |
tree | aa4c5d2d6ff737fe3b10a35a0803bc15be31cbd1 /net/caif | |
parent | 4babfb9b27dae936c35c1b9f3089346c7a96f593 (diff) |
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) | |||
515 | client_layer : NULL); | 515 | client_layer : NULL); |
516 | } | 516 | } |
517 | 517 | ||
518 | if (req != NULL) | 518 | kfree(req); |
519 | kfree(req); | ||
520 | 519 | ||
521 | spin_unlock_bh(&cfctrl->info_list_lock); | 520 | spin_unlock_bh(&cfctrl->info_list_lock); |
522 | } | 521 | } |