Skip to content

Commit

Permalink
netlabel: directly return netlbl_unlabel_genl_init()
Browse files Browse the repository at this point in the history
No need to store netlbl_unlabel_genl_init result and test it before returning.

Signed-off-by: Fabian Frederick <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Fabian Frederick authored and davem330 committed Oct 8, 2014
1 parent 5351145 commit 16b99a4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions net/netlabel/netlabel_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,7 @@ int __init netlbl_netlink_init(void)
if (ret_val != 0)
return ret_val;

ret_val = netlbl_unlabel_genl_init();
if (ret_val != 0)
return ret_val;

return 0;
return netlbl_unlabel_genl_init();
}

/*
Expand Down

0 comments on commit 16b99a4

Please sign in to comment.