Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bd779028 authored by Cong Ding's avatar Cong Ding Committed by David S. Miller
Browse files

ipv6: addrconf.c: remove unnecessary "if"



the value of err is always negative if it goes to errout, so we don't need to
check the value of err.

Signed-off-by: default avatarCong Ding <dinggnu@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 09d7cf7d
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -534,7 +534,6 @@ 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);
}