summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorChristian Brauner <christian.brauner@ubuntu.com>2018-02-01 14:56:00 +0300
committerDavid S. Miller <davem@davemloft.net>2018-02-01 18:09:50 +0300
commit7973bfd8758d05c85ee32052a3d7d5d0549e91b4 (patch)
tree165f8a98c9652707ba1355f7202105507d8b3b89 /net
parenta83165f00f16c0e0ef5b7cec3cbd0d4788699265 (diff)
downloadlinux-7973bfd8758d05c85ee32052a3d7d5d0549e91b4.tar.xz
rtnetlink: remove check for IFLA_IF_NETNSID
RTM_NEWLINK supports the IFLA_IF_NETNSID property since 5bb8ed075428b71492734af66230aa0c07fcc515 so we should not error out when it is passed. Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/core/rtnetlink.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c
index 204297dffd2a..56af8e41abfc 100644
--- a/net/core/rtnetlink.c
+++ b/net/core/rtnetlink.c
@@ -2802,9 +2802,6 @@ replay:
if (err < 0)
return err;
- if (tb[IFLA_IF_NETNSID])
- return -EOPNOTSUPP;
-
if (tb[IFLA_IFNAME])
nla_strlcpy(ifname, tb[IFLA_IFNAME], IFNAMSIZ);
else