mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 11:03:43 +02:00
neighbour: Remove redundant assignment to err
'err' has been checked against 0 in the if statement. Signed-off-by: Yue Haibing <yuehaibing@huawei.com> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/20250624014216.3686659-1-yuehaibing@huawei.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
b48d353d24
commit
9b19b50c8d
|
|
@ -2055,10 +2055,8 @@ static int neigh_add(struct sk_buff *skb, struct nlmsghdr *nlh,
|
|||
|
||||
err = __neigh_update(neigh, lladdr, ndm->ndm_state, flags,
|
||||
NETLINK_CB(skb).portid, extack);
|
||||
if (!err && ndm_flags & (NTF_USE | NTF_MANAGED)) {
|
||||
if (!err && ndm_flags & (NTF_USE | NTF_MANAGED))
|
||||
neigh_event_send(neigh, NULL);
|
||||
err = 0;
|
||||
}
|
||||
neigh_release(neigh);
|
||||
out:
|
||||
return err;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user