diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2012-11-20 00:53:58 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-11-20 13:48:09 -0500 |
commit | 973b1b9a454c738edbb2eb8d4596014b575dc15c (patch) | |
tree | aa4c5d2d6ff737fe3b10a35a0803bc15be31cbd1 /net/caif | |
parent | 4babfb9b27dae936c35c1b9f3089346c7a96f593 (diff) | |
download | kernel_goldelico_gta04-973b1b9a454c738edbb2eb8d4596014b575dc15c.zip kernel_goldelico_gta04-973b1b9a454c738edbb2eb8d4596014b575dc15c.tar.gz kernel_goldelico_gta04-973b1b9a454c738edbb2eb8d4596014b575dc15c.tar.bz2 |
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 44f270f..a376ec1 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); } |