commit | ce030edfb4ba6734248b8d9f98d0a6f1dcd142e7 | [log] [tgz] |
---|---|---|
author | Wei Yongjun <yjwei@cn.fujitsu.com> | Wed Feb 25 00:35:44 2009 +0000 |
committer | David S. Miller <davem@davemloft.net> | Thu Feb 26 23:07:35 2009 -0800 |
tree | 97a8f808e65f18a287e250abb4a2024f726dcb93 | |
parent | 91744f6559393697e13bf0f9f3f35f884e2520f9 [diff] |
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>
diff --git a/net/can/af_can.c b/net/can/af_can.c index d90e8dd..547bafc 100644 --- a/net/can/af_can.c +++ b/net/can/af_can.c
@@ -273,8 +273,7 @@ err = net_xmit_errno(err); if (err) { - if (newskb) - kfree_skb(newskb); + kfree_skb(newskb); return err; }