Skip to content

Commit

Permalink
genetlink: use genl_register_family_with_ops()
Browse files Browse the repository at this point in the history
Signed-off-by: Changli Gao <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
xiaosuo authored and davem330 committed Jul 27, 2010
1 parent a256be7 commit 652c671
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions net/netlink/genetlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -877,11 +877,7 @@ static int __init genl_init(void)
for (i = 0; i < GENL_FAM_TAB_SIZE; i++)
INIT_LIST_HEAD(&family_ht[i]);

err = genl_register_family(&genl_ctrl);
if (err < 0)
goto problem;

err = genl_register_ops(&genl_ctrl, &genl_ctrl_ops);
err = genl_register_family_with_ops(&genl_ctrl, &genl_ctrl_ops, 1);
if (err < 0)
goto problem;

Expand Down

0 comments on commit 652c671

Please sign in to comment.