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 1e779bb..adf8b79 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();
 }
 
 /*