* [PATCH 1/1 net-next] netlabel: directly return netlbl_unlabel_genl_init()
@ 2014-10-08 18:37 Fabian Frederick
2014-10-08 20:09 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Fabian Frederick @ 2014-10-08 18:37 UTC (permalink / raw)
To: linux-kernel; +Cc: Fabian Frederick, Paul Moore, David S. Miller, netdev
No need to store netlbl_unlabel_genl_init result and test it before returning.
Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
net/netlabel/netlabel_user.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/net/netlabel/netlabel_user.c b/net/netlabel/netlabel_user.c
index 1e779bb..adf8b79 100644
--- 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();
}
/*
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1 net-next] netlabel: directly return netlbl_unlabel_genl_init()
2014-10-08 18:37 [PATCH 1/1 net-next] netlabel: directly return netlbl_unlabel_genl_init() Fabian Frederick
@ 2014-10-08 20:09 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2014-10-08 20:09 UTC (permalink / raw)
To: fabf; +Cc: linux-kernel, paul, netdev
From: Fabian Frederick <fabf@skynet.be>
Date: Wed, 8 Oct 2014 20:37:01 +0200
> No need to store netlbl_unlabel_genl_init result and test it before returning.
>
> Signed-off-by: Fabian Frederick <fabf@skynet.be>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-10-08 20:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-08 18:37 [PATCH 1/1 net-next] netlabel: directly return netlbl_unlabel_genl_init() Fabian Frederick
2014-10-08 20:09 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).