projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4babfb9
)
caif: Remove redundant null check before kfree in cfctrl.c
author
Sachin Kamat
<sachin.kamat@linaro.org>
Tue, 20 Nov 2012 00:53:58 +0000
(
00:53
+0000)
committer
David S. Miller
<davem@davemloft.net>
Tue, 20 Nov 2012 18:48:09 +0000
(13:48 -0500)
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>
net/caif/cfctrl.c
patch
|
blob
|
blame
|
history
diff --git
a/net/caif/cfctrl.c
b/net/caif/cfctrl.c
index 44f270fc2d0672207e42de6747948e430a576311..a376ec1ac0a7b086354b24f498af65bc4d5fc6b2 100644
(file)
--- 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);
}