projects
/
profile
/
common
/
platform
/
kernel
/
linux-artik7.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
|
history
diff --git
a/net/netlabel/netlabel_user.c
b/net/netlabel/netlabel_user.c
index
1e779bb
..
adf8b79
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();
}
/*