net ipv6: Convert addrconf to use register_net_sysctl
authorEric W. Biederman <ebiederm@xmission.com>
Thu, 19 Apr 2012 13:41:24 +0000 (13:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 Apr 2012 01:22:29 +0000 (21:22 -0400)
commit6105e29320f662bf2f2358e2b2ff1bbf599f387f
tree20006457ae627974d428443f68687fb435e22b42
parent9bdcc88fa03a09c1f0478c0d7443d0aba7872210
net ipv6: Convert addrconf to use register_net_sysctl

Using an ascii path to register_net_sysctl as opposed to the slightly
awkward ctl_path allows for much simpler code.

We no longer need to malloc dev_name to keep it alive the length of our
sysctl register instead we can use a small temporary buffer on the
stack.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Acked-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c