Skip to content

Commit 48452c1

Browse files
hartkoppmarckleinebudde
authored andcommitted
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>
1 parent a7bbd28 commit 48452c1

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

net/can/af_can.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@ static int stats_timer __read_mostly = 1;
7575
module_param(stats_timer, int, S_IRUGO);
7676
MODULE_PARM_DESC(stats_timer, "enable timer for statistics (default:on)");
7777

78-
static int can_net_id;
79-
8078
static struct kmem_cache *rcv_cache __read_mostly;
8179

8280
/* table of registered CAN protocols */
@@ -935,8 +933,6 @@ static struct notifier_block can_netdev_notifier __read_mostly = {
935933
static struct pernet_operations can_pernet_ops __read_mostly = {
936934
.init = can_pernet_init,
937935
.exit = can_pernet_exit,
938-
.id = &can_net_id,
939-
.size = 0,
940936
};
941937

942938
static __init int can_init(void)

0 commit comments

Comments
 (0)