diff options
author | Konstantin Khlebnikov | 2016-04-18 13:41:10 +0200 |
---|---|---|
committer | David S. Miller | 2016-04-20 02:13:19 +0200 |
commit | 607ea7cda6315be0ad8be2f98bc9de6f2d656ae6 (patch) | |
tree | f3c5db6ef9c984c8b6a7cf9e883b2ec8370cd5d7 /include | |
parent | net: Add helpers for 64-bit aligning netlink attributes. (diff) | |
download | kernel-qcow2-linux-607ea7cda6315be0ad8be2f98bc9de6f2d656ae6.tar.gz kernel-qcow2-linux-607ea7cda6315be0ad8be2f98bc9de6f2d656ae6.tar.xz kernel-qcow2-linux-607ea7cda6315be0ad8be2f98bc9de6f2d656ae6.zip |
net/ipv6/addrconf: simplify sysctl registration
Struct ctl_table_header holds pointer to sysctl table which could be used
for freeing it after unregistration. IPv4 sysctls already use that.
Remove redundant NULL assignment: ndev allocated using kzalloc.
This also saves some bytes: sysctl table could be shorter than
DEVCONF_MAX+1 if some options are disable in config.
Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/ipv6.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/ipv6.h b/include/linux/ipv6.h index 7edc14fb66b6..58d6e158755f 100644 --- a/include/linux/ipv6.h +++ b/include/linux/ipv6.h @@ -63,7 +63,8 @@ struct ipv6_devconf { } stable_secret; __s32 use_oif_addrs_only; __s32 keep_addr_on_down; - void *sysctl; + + struct ctl_table_header *sysctl_header; }; struct ipv6_params { |