fix system_if_check
authorFelix Fietkau <nbd@openwrt.org>
Sun, 23 Oct 2011 15:22:31 +0000 (17:22 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 23 Oct 2011 15:22:31 +0000 (17:22 +0200)
system-linux.c

index 1598170..3ac5588 100644 (file)
@@ -603,7 +603,7 @@ int system_if_down(struct device *dev)
 
 int system_if_check(struct device *dev)
 {
-       device_set_present(dev, (system_if_resolve(dev) >= 0));
+       device_set_present(dev, (system_if_resolve(dev) > 0));
        return 0;
 }