Skip to content

Commit

Permalink
dlm: use genl_register_family_with_ops()
Browse files Browse the repository at this point in the history
Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Signed-off-by: David Teigland <teigland@redhat.com>
  • Loading branch information
Changli Gao authored and David Teigland committed Aug 5, 2010
1 parent cdd854b commit a4d935b
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions fs/dlm/netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,24 +81,11 @@ static struct genl_ops dlm_nl_ops = {

int __init dlm_netlink_init(void)
{
int rv;

rv = genl_register_family(&family);
if (rv)
return rv;

rv = genl_register_ops(&family, &dlm_nl_ops);
if (rv < 0)
goto err;
return 0;
err:
genl_unregister_family(&family);
return rv;
return genl_register_family_with_ops(&family, &dlm_nl_ops, 1);
}

void dlm_netlink_exit(void)
{
genl_unregister_ops(&family, &dlm_nl_ops);
genl_unregister_family(&family);
}

Expand Down

0 comments on commit a4d935b

Please sign in to comment.