Revert "net: rtnetlink: remove redundant assignment to variable err"

This reverts commit c49d31809a which is
commit 7d3118016787b5c05da94b3bcdb96c9d6ff82c44 upstream.

It breaks the Android kernel abi and can be brought back in the future
in an abi-safe way if it is really needed.

Bug: 161946584
Change-Id: I29e9d676be00412288460401a10b4c456aa90f99
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
Greg Kroah-Hartman 2025-10-31 07:58:56 +00:00
commit d9d086d36e

View file

@ -3823,8 +3823,8 @@ static int rtnl_fdb_del(struct sk_buff *skb, struct nlmsghdr *nlh,
struct ndmsg *ndm;
struct nlattr *tb[NDA_MAX+1];
struct net_device *dev;
int err = -EINVAL;
__u8 *addr;
int err;
u16 vid;
if (!netlink_capable(skb, CAP_NET_ADMIN))