]> rtime.felk.cvut.cz Git - linux-imx.git/blobdiff - net/ipv6/addrconf.c
ipv6: addrconf.c: remove unnecessary "if"
[linux-imx.git] / net / ipv6 / addrconf.c
index 6fca01f136ad7ca3528dc19729bd8a7b07c24874..408cac4ae00a41129e4bf89506e96f646c607380 100644 (file)
@@ -534,8 +534,7 @@ void inet6_netconf_notify_devconf(struct net *net, int type, int ifindex,
        rtnl_notify(skb, net, 0, RTNLGRP_IPV6_NETCONF, NULL, GFP_ATOMIC);
        return;
 errout:
-       if (err < 0)
-               rtnl_set_sk_err(net, RTNLGRP_IPV6_NETCONF, err);
+       rtnl_set_sk_err(net, RTNLGRP_IPV6_NETCONF, err);
 }
 
 static const struct nla_policy devconf_ipv6_policy[NETCONFA_MAX+1] = {