system-linux: return 0 in system_init
authorFelix Fietkau <nbd@openwrt.org>
Sun, 9 Oct 2011 17:56:43 +0000 (19:56 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 9 Oct 2011 17:56:43 +0000 (19:56 +0200)
system-linux.c

index 158045a3487ed66776b165a42b3e567492b28153..db809bb4f91b7495cc9ea22057f334ea136bffa5 100644 (file)
@@ -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);