Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 150356
b: refs/heads/master
c: 502664e
h: refs/heads/master
v: v3
  • Loading branch information
Michał Mirosław authored and David S. Miller committed May 21, 2009
1 parent b335ff0 commit 2305475
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a7b11d738282337488ae158c975d76271ad43a98
refs/heads/master: 502664eeaf880d364821521bbced7ae342f77f64
17 changes: 2 additions & 15 deletions trunk/net/irda/irnetlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,21 +148,8 @@ static struct genl_ops irda_nl_ops[] = {

int irda_nl_register(void)
{
int err, i;

err = genl_register_family(&irda_nl_family);
if (err)
return err;

for (i = 0; i < ARRAY_SIZE(irda_nl_ops); i++) {
err = genl_register_ops(&irda_nl_family, &irda_nl_ops[i]);
if (err)
goto err_out;
}
return 0;
err_out:
genl_unregister_family(&irda_nl_family);
return err;
return genl_register_family_with_ops(&irda_nl_family,
irda_nl_ops, ARRAY_SIZE(irda_nl_ops));
}

void irda_nl_unregister(void)
Expand Down

0 comments on commit 2305475

Please sign in to comment.