diff options
author | Oliver Hartkopp <socketcan@hartkopp.net> | 2017-04-25 02:19:39 -0400 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2017-04-25 03:04:28 -0400 |
commit | 48452c169d5ddfdbff4af556016dd9e1f47d762b (patch) | |
tree | 8a079b2f9063dba66b264c31affd32f0c9e45e85 /net/can | |
parent | a7bbd28f04ce4df26f07e96c4a743d529da99348 (diff) |
can: remove obsolete pernet_operations definitions
The namespace support for the CAN subsystem does not need any additional
memory. So when ".size = 0" there's no extra memory allocated by the system.
And therefore ".id" is obsolete too.
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'net/can')
-rw-r--r-- | net/can/af_can.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/net/can/af_can.c b/net/can/af_can.c index 2c935babe466..421b60fc42c3 100644 --- a/net/can/af_can.c +++ b/net/can/af_can.c | |||
@@ -75,8 +75,6 @@ static int stats_timer __read_mostly = 1; | |||
75 | module_param(stats_timer, int, S_IRUGO); | 75 | module_param(stats_timer, int, S_IRUGO); |
76 | MODULE_PARM_DESC(stats_timer, "enable timer for statistics (default:on)"); | 76 | MODULE_PARM_DESC(stats_timer, "enable timer for statistics (default:on)"); |
77 | 77 | ||
78 | static int can_net_id; | ||
79 | |||
80 | static struct kmem_cache *rcv_cache __read_mostly; | 78 | static struct kmem_cache *rcv_cache __read_mostly; |
81 | 79 | ||
82 | /* table of registered CAN protocols */ | 80 | /* table of registered CAN protocols */ |
@@ -935,8 +933,6 @@ static struct notifier_block can_netdev_notifier __read_mostly = { | |||
935 | static struct pernet_operations can_pernet_ops __read_mostly = { | 933 | static struct pernet_operations can_pernet_ops __read_mostly = { |
936 | .init = can_pernet_init, | 934 | .init = can_pernet_init, |
937 | .exit = can_pernet_exit, | 935 | .exit = can_pernet_exit, |
938 | .id = &can_net_id, | ||
939 | .size = 0, | ||
940 | }; | 936 | }; |
941 | 937 | ||
942 | static __init int can_init(void) | 938 | static __init int can_init(void) |