mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
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>
This commit is contained in:
parent
91744f6559
commit
ce030edfb4
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue