projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91744f6
)
can: remove some pointless conditionals before kfree_skb()
author
Wei Yongjun
<yjwei@cn.fujitsu.com>
Wed, 25 Feb 2009 00:35:44 +0000
(
00:35
+0000)
committer
David S. Miller
<davem@davemloft.net>
Fri, 27 Feb 2009 07:07:35 +0000
(23:07 -0800)
Remove some pointless conditionals before kfree_skb().
Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/can/af_can.c
patch
|
blob
|
blame
|
history
diff --git
a/net/can/af_can.c
b/net/can/af_can.c
index d90e8dd975fcf05d842be52fd41ef8e1f369d411..547bafc79e28585c44f5d59b46c9884ec1d414da 100644
(file)
--- a/
net/can/af_can.c
+++ b/
net/can/af_can.c
@@
-273,8
+273,7
@@
int can_send(struct sk_buff *skb, int loop)
err = net_xmit_errno(err);
if (err) {
- if (newskb)
- kfree_skb(newskb);
+ kfree_skb(newskb);
return err;
}