]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
netlabel: directly return netlbl_unlabel_genl_init()
authorFabian Frederick <fabf@skynet.be>
Wed, 8 Oct 2014 18:37:01 +0000 (20:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Oct 2014 20:08:04 +0000 (16:08 -0400)
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>
net/netlabel/netlabel_user.c

index 1e779bb7fa435a7096342a1360b696b4a09a60cf..adf8b7900da2ac131c8ebc61d60d1373493d30c4 100644 (file)
@@ -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();
 }
 
 /*