netlink: make nlmsg_end() and genlmsg_end() void
[cascardo/linux.git] / net / ipv6 / ip6mr.c
index 7226697..34b6826 100644 (file)
@@ -2388,7 +2388,8 @@ static int ip6mr_fill_mroute(struct mr6_table *mrt, struct sk_buff *skb,
        if (err < 0 && err != -ENOENT)
                goto nla_put_failure;
 
-       return nlmsg_end(skb, nlh);
+       nlmsg_end(skb, nlh);
+       return 0;
 
 nla_put_failure:
        nlmsg_cancel(skb, nlh);