net-sysfs: use to_net_dev in net_namespace()
authorGeliang Tang <geliangtang@163.com>
Tue, 22 Dec 2015 15:11:49 +0000 (23:11 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Dec 2015 20:04:09 +0000 (15:04 -0500)
commit5c29482dd17835def5cb97918f8f83a881c9918a
tree2f855653dab44427e11f609b5f88b995abb03e27
parentd317aa5893015d473c11a55bc3125ebd68648946
net-sysfs: use to_net_dev in net_namespace()

Use to_net_dev() instead of open-coding it.

Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/net-sysfs.c