summaryrefslogtreecommitdiffstats
path: root/net/caif
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2012-11-20 01:53:58 +0100
committerDavid S. Miller <davem@davemloft.net>2012-11-20 19:48:09 +0100
commit973b1b9a454c738edbb2eb8d4596014b575dc15c (patch)
treeaa4c5d2d6ff737fe3b10a35a0803bc15be31cbd1 /net/caif
parentbnx2x: Remove duplicate inclusion of bnx2x_hsi.h (diff)
downloadlinux-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.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);
}