diff options
-rw-r--r-- | net/can/af_can.c | 3 |
1 files changed, 1 insertions, 2 deletions
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 @@ 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; } |