projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5351145
)
netlabel: directly return netlbl_unlabel_genl_init()
author
Fabian Frederick
<fabf@skynet.be>
Wed, 8 Oct 2014 18:37:01 +0000
(20:37 +0200)
committer
David 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
patch
|
blob
|
blame
|
history
diff --git
a/net/netlabel/netlabel_user.c
b/net/netlabel/netlabel_user.c
index 1e779bb7fa435a7096342a1360b696b4a09a60cf..adf8b7900da2ac131c8ebc61d60d1373493d30c4 100644
(file)
--- 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();
}
/*