diff --git a/net/core/neighbour.c b/net/core/neighbour.c index cb0c233e8396..118d932b3baa 100644 --- a/net/core/neighbour.c +++ b/net/core/neighbour.c @@ -3526,8 +3526,7 @@ static void __neigh_notify(struct neighbour *n, int type, int flags, rtnl_notify(skb, net, 0, RTNLGRP_NEIGH, NULL, GFP_ATOMIC); return; errout: - if (err < 0) - rtnl_set_sk_err(net, RTNLGRP_NEIGH, err); + rtnl_set_sk_err(net, RTNLGRP_NEIGH, err); } void neigh_app_ns(struct neighbour *n)