summaryrefslogtreecommitdiffstats
path: root/net/can/gw.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/can/gw.c')
-rw-r--r--net/can/gw.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/can/gw.c b/net/can/gw.c
index 295f62e62eb3..a6f448e18ea8 100644
--- a/net/can/gw.c
+++ b/net/can/gw.c
@@ -575,7 +575,8 @@ static int cgw_put_job(struct sk_buff *skb, struct cgw_job *gwj, int type,
575 goto cancel; 575 goto cancel;
576 } 576 }
577 577
578 return nlmsg_end(skb, nlh); 578 nlmsg_end(skb, nlh);
579 return 0;
579 580
580cancel: 581cancel:
581 nlmsg_cancel(skb, nlh); 582 nlmsg_cancel(skb, nlh);