diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-10-08 22:37:01 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-10-09 00:08:04 +0400 |
commit | 16b99a4f6644d58c94acb4b4253e84049de588c5 (patch) | |
tree | 772f207cd3f7720ea3514eca619e7bdb7bf2aa90 /net/netlabel | |
parent | 535114539bb2c081b6680cb5a34be17e7b45df37 (diff) | |
download | linux-16b99a4f6644d58c94acb4b4253e84049de588c5.tar.xz |
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>
Diffstat (limited to 'net/netlabel')
-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) 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(); } /* |