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:
923c658
)
ipv4: clean the init_ipv4_mibs error paths
author
Pavel Emelyanov
<xemul@openvz.org>
Fri, 18 Jul 2008 11:04:51 +0000
(
04:04
-0700)
committer
David S. Miller
<davem@davemloft.net>
Fri, 18 Jul 2008 11:04:51 +0000
(
04:04
-0700)
After moving all the stuff outside this function it looks
a bit ugly - make it look better.
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/af_inet.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv4/af_inet.c
b/net/ipv4/af_inet.c
index 36ff6dc769c6b25c3bbf5a158b0f4074929cf140..dd919d84285ffc8874fe659e96c24c76e56501f5 100644
(file)
--- a/
net/ipv4/af_inet.c
+++ b/
net/ipv4/af_inet.c
@@
-1399,13
+1399,7
@@
static __net_initdata struct pernet_operations ipv4_mib_ops = {
static int __init init_ipv4_mibs(void)
{
- if (register_pernet_subsys(&ipv4_mib_ops))
- goto err_net;
-
- return 0;
-
-err_net:
- return -ENOMEM;
+ return register_pernet_subsys(&ipv4_mib_ops);
}
static int ipv4_proc_init(void);