netlink: make nlmsg_end() and genlmsg_end() void
[cascardo/linux.git] / net / ipv4 / tcp_metrics.c
index ed9c9a9..e5f41bd 100644 (file)
@@ -886,7 +886,8 @@ static int tcp_metrics_dump_info(struct sk_buff *skb,
        if (tcp_metrics_fill_info(skb, tm) < 0)
                goto nla_put_failure;
 
-       return genlmsg_end(skb, hdr);
+       genlmsg_end(skb, hdr);
+       return 0;
 
 nla_put_failure:
        genlmsg_cancel(skb, hdr);