Skip to content

Commit

Permalink
can: remove obsolete pernet_operations definitions
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Marc Kleine-Budde <[email protected]>
  • Loading branch information
hartkopp authored and marckleinebudde committed Apr 25, 2017
1 parent a7bbd28 commit 48452c1
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions net/can/af_can.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ static int stats_timer __read_mostly = 1;
module_param(stats_timer, int, S_IRUGO);
MODULE_PARM_DESC(stats_timer, "enable timer for statistics (default:on)");

static int can_net_id;

static struct kmem_cache *rcv_cache __read_mostly;

/* table of registered CAN protocols */
Expand Down Expand Up @@ -935,8 +933,6 @@ static struct notifier_block can_netdev_notifier __read_mostly = {
static struct pernet_operations can_pernet_ops __read_mostly = {
.init = can_pernet_init,
.exit = can_pernet_exit,
.id = &can_net_id,
.size = 0,
};

static __init int can_init(void)
Expand Down

0 comments on commit 48452c1

Please sign in to comment.