diff options
author | Changli Gao <xiaosuo@gmail.com> | 2010-07-25 19:21:05 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-07-27 00:00:10 -0400 |
commit | 652c6717465dbd0091dbe04ed9be2f7e59c03c7d (patch) | |
tree | 4c79c61dbab1c01a0e3096e2c25001c10af7ee99 /net/netlink/genetlink.c | |
parent | a256be70c57d6f8c827d09d645a1f6fe9330af72 (diff) |
genetlink: use genl_register_family_with_ops()
Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netlink/genetlink.c')
-rw-r--r-- | net/netlink/genetlink.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/net/netlink/genetlink.c b/net/netlink/genetlink.c index e09e17a90b31..26ed3e8587c2 100644 --- a/net/netlink/genetlink.c +++ b/net/netlink/genetlink.c | |||
@@ -877,11 +877,7 @@ static int __init genl_init(void) | |||
877 | for (i = 0; i < GENL_FAM_TAB_SIZE; i++) | 877 | for (i = 0; i < GENL_FAM_TAB_SIZE; i++) |
878 | INIT_LIST_HEAD(&family_ht[i]); | 878 | INIT_LIST_HEAD(&family_ht[i]); |
879 | 879 | ||
880 | err = genl_register_family(&genl_ctrl); | 880 | err = genl_register_family_with_ops(&genl_ctrl, &genl_ctrl_ops, 1); |
881 | if (err < 0) | ||
882 | goto problem; | ||
883 | |||
884 | err = genl_register_ops(&genl_ctrl, &genl_ctrl_ops); | ||
885 | if (err < 0) | 881 | if (err < 0) |
886 | goto problem; | 882 | goto problem; |
887 | 883 | ||