]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - net/ipv4/tcp_metrics.c
netlink: make nlmsg_end() and genlmsg_end() void
[mirror_ubuntu-jammy-kernel.git] / net / ipv4 / tcp_metrics.c
index ed9c9a91851ced8e719aeec58530fb326ec8a2db..e5f41bd5ec1bcfe88199ec077f1558917b1be61b 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);