diff options
Diffstat (limited to 'net/can')
-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 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) | |||
273 | err = net_xmit_errno(err); | 273 | err = net_xmit_errno(err); |
274 | 274 | ||
275 | if (err) { | 275 | if (err) { |
276 | if (newskb) | 276 | kfree_skb(newskb); |
277 | kfree_skb(newskb); | ||
278 | return err; | 277 | return err; |
279 | } | 278 | } |
280 | 279 | ||