Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Fabian Frederick and committed by
David S. Miller
16b99a4f 53511453

+1 -5
+1 -5
net/netlabel/netlabel_user.c
··· 71 71 if (ret_val != 0) 72 72 return ret_val; 73 73 74 - ret_val = netlbl_unlabel_genl_init(); 75 - if (ret_val != 0) 76 - return ret_val; 77 - 78 - return 0; 74 + return netlbl_unlabel_genl_init(); 79 75 } 80 76 81 77 /*