user_ns: get rid of duplicate code in net_ctl_permissions
authorZhao Hongjiang <zhaohongjiang@huawei.com>
Fri, 16 Nov 2012 03:03:02 +0000 (03:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Nov 2012 01:32:45 +0000 (20:32 -0500)
commit86937c05cb44654649a089744cd49ab0dc6873a8
treea283a8ee7d4cb38dcbaf6b239d422b079c47130b
parentcff109768b2d9c03095848f4cd4b0754117262aa
user_ns: get rid of duplicate code in net_ctl_permissions

Get rid of duplicate code in net_ctl_permissions and fix the comment.

Signed-off-by: Zhao Hongjiang <zhaohongjiang@huawei.com>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sysctl_net.c