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 22:08:04 +0200 |
commit | 16b99a4f6644d58c94acb4b4253e84049de588c5 (patch) | |
tree | 772f207cd3f7720ea3514eca619e7bdb7bf2aa90 /net | |
parent | net: add netdev_txq_bql_{enqueue, complete}_prefetchw() helpers (diff) | |
download | linux-16b99a4f6644d58c94acb4b4253e84049de588c5.tar.xz 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>
Diffstat (limited to '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(); } /* |