diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-10-08 20:37:01 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-10-08 16:08:04 -0400 |
commit | 16b99a4f6644d58c94acb4b4253e84049de588c5 (patch) | |
tree | 772f207cd3f7720ea3514eca619e7bdb7bf2aa90 | |
parent | 535114539bb2c081b6680cb5a34be17e7b45df37 (diff) | |
download | linux-16b99a4f6644d58c94acb4b4253e84049de588c5.tar.gz linux-16b99a4f6644d58c94acb4b4253e84049de588c5.tar.bz2 linux-16b99a4f6644d58c94acb4b4253e84049de588c5.zip |
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) 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(); } /* |