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

Commit 7973bfd8 authored by Christian Brauner's avatar Christian Brauner Committed by David S. Miller
Browse files

rtnetlink: remove check for IFLA_IF_NETNSID



RTM_NEWLINK supports the IFLA_IF_NETNSID property since
5bb8ed07 so we should not error out
when it is passed.

Signed-off-by: default avatarChristian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a83165f0
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -2802,9 +2802,6 @@ static int rtnl_newlink(struct sk_buff *skb, struct nlmsghdr *nlh,
	if (err < 0)
		return err;

	if (tb[IFLA_IF_NETNSID])
		return -EOPNOTSUPP;

	if (tb[IFLA_IFNAME])
		nla_strlcpy(ifname, tb[IFLA_IFNAME], IFNAMSIZ);
	else