netlink: make nlmsg_end() and genlmsg_end() void
[deliverable/linux.git] / net / ipv4 / devinet.c
index 214882e7d6deea0114531124689027dfdde83df6..5f344eb3fc25a6e3844e6fe1ae79d61c7ab04cc1 100644 (file)
@@ -1522,7 +1522,8 @@ static int inet_fill_ifaddr(struct sk_buff *skb, struct in_ifaddr *ifa,
                          preferred, valid))
                goto nla_put_failure;
 
-       return nlmsg_end(skb, nlh);
+       nlmsg_end(skb, nlh);
+       return 0;
 
 nla_put_failure:
        nlmsg_cancel(skb, nlh);
@@ -1566,7 +1567,7 @@ static int inet_dump_ifaddr(struct sk_buff *skb, struct netlink_callback *cb)
                                if (inet_fill_ifaddr(skb, ifa,
                                             NETLINK_CB(cb->skb).portid,
                                             cb->nlh->nlmsg_seq,
-                                            RTM_NEWADDR, NLM_F_MULTI) <= 0) {
+                                            RTM_NEWADDR, NLM_F_MULTI) < 0) {
                                        rcu_read_unlock();
                                        goto done;
                                }
@@ -1749,7 +1750,8 @@ static int inet_netconf_fill_devconf(struct sk_buff *skb, int ifindex,
                        IPV4_DEVCONF(*devconf, PROXY_ARP)) < 0)
                goto nla_put_failure;
 
-       return nlmsg_end(skb, nlh);
+       nlmsg_end(skb, nlh);
+       return 0;
 
 nla_put_failure:
        nlmsg_cancel(skb, nlh);
This page took 0.027373 seconds and 5 git commands to generate.