net: rtnetlink: unify the code in __rtnl_newlink get dev with the rest
authorJiri Pirko <jiri@mellanox.com>
Mon, 30 Sep 2019 09:48:18 +0000 (11:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Oct 2019 21:47:19 +0000 (14:47 -0700)
commit7af12cba4ef0caf20bddf84f90509e71006d5408
treeb82e9700fbd64855c2557ee197aca54730eeb451
parent88f4fb0c7496a13b887bdc5052e3aabe3e4dcc5f
net: rtnetlink: unify the code in __rtnl_newlink get dev with the rest

__rtnl_newlink() code flow is a bit different around tb[IFLA_IFNAME]
processing comparing to the other places. Change that to be unified with
the rest.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c