summaryrefslogtreecommitdiffstats
path: root/net/caif
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2012-11-20 00:53:58 +0000
committerDavid S. Miller <davem@davemloft.net>2012-11-20 13:48:09 -0500
commit973b1b9a454c738edbb2eb8d4596014b575dc15c (patch)
treeaa4c5d2d6ff737fe3b10a35a0803bc15be31cbd1 /net/caif
parent4babfb9b27dae936c35c1b9f3089346c7a96f593 (diff)
downloadlinux-stable-973b1b9a454c738edbb2eb8d4596014b575dc15c.tar.gz
linux-stable-973b1b9a454c738edbb2eb8d4596014b575dc15c.tar.bz2
linux-stable-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.c3
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);
}