summaryrefslogtreecommitdiffstats
path: root/net/can
diff options
context:
space:
mode:
authorWei Yongjun <yjwei@cn.fujitsu.com>2009-02-25 01:35:44 +0100
committerDavid S. Miller <davem@davemloft.net>2009-02-27 08:07:35 +0100
commitce030edfb4ba6734248b8d9f98d0a6f1dcd142e7 (patch)
tree97a8f808e65f18a287e250abb4a2024f726dcb93 /net/can
parentnetlink: remove some pointless conditionals before kfree_skb() (diff)
downloadlinux-ce030edfb4ba6734248b8d9f98d0a6f1dcd142e7.tar.xz
linux-ce030edfb4ba6734248b8d9f98d0a6f1dcd142e7.zip
can: remove some pointless conditionals before kfree_skb()
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>
Diffstat (limited to 'net/can')
-rw-r--r--net/can/af_can.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/can/af_can.c b/net/can/af_can.c
index d90e8dd975fc..547bafc79e28 100644
--- 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;
}