diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-10-08 14:37:01 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-10-08 16:08:04 -0400 |
commit | 16b99a4f6644d58c94acb4b4253e84049de588c5 (patch) | |
tree | 772f207cd3f7720ea3514eca619e7bdb7bf2aa90 | |
parent | 535114539bb2c081b6680cb5a34be17e7b45df37 (diff) |
netlabel: directly return netlbl_unlabel_genl_init()
No need to store netlbl_unlabel_genl_init result and test it before returning.
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/netlabel/netlabel_user.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/net/netlabel/netlabel_user.c b/net/netlabel/netlabel_user.c index 1e779bb7fa43..adf8b7900da2 100644 --- a/net/netlabel/netlabel_user.c +++ b/net/netlabel/netlabel_user.c | |||
@@ -71,11 +71,7 @@ int __init netlbl_netlink_init(void) | |||
71 | if (ret_val != 0) | 71 | if (ret_val != 0) |
72 | return ret_val; | 72 | return ret_val; |
73 | 73 | ||
74 | ret_val = netlbl_unlabel_genl_init(); | 74 | return netlbl_unlabel_genl_init(); |
75 | if (ret_val != 0) | ||
76 | return ret_val; | ||
77 | |||
78 | return 0; | ||
79 | } | 75 | } |
80 | 76 | ||
81 | /* | 77 | /* |