summaryrefslogtreecommitdiffhomepage
path: root/system-linux.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-10-09 19:56:43 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-10-09 19:56:43 +0200
commitbf659294d7ec8aa774bd8e56947d1739b2ec43c9 (patch)
treefa8ba5aa7403412869a8c814916d09441cdd9eeb /system-linux.c
parente1b2a2313dfa148f0708add78f7efce362cbc408 (diff)
system-linux: return 0 in system_init
Diffstat (limited to 'system-linux.c')
-rw-r--r--system-linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/system-linux.c b/system-linux.c
index 158045a..db809bb 100644
--- a/system-linux.c
+++ b/system-linux.c
@@ -60,7 +60,7 @@ int system_init(void)
rtnl_event.fd = nl_socket_get_fd(sock_rtnl_event);
uloop_fd_add(&rtnl_event, ULOOP_READ | ULOOP_EDGE_TRIGGER);
- return -(sock_ioctl < 0 || !sock_rtnl);
+ return 0;
error_free_event:
nl_socket_free(sock_rtnl_event);