projects
/
oweals
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11bd51d
)
system-linux: set the device present state in system_if_check()
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 9 Oct 2011 17:18:07 +0000
(19:18 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 9 Oct 2011 17:18:07 +0000
(19:18 +0200)
system-linux.c
patch
|
blob
|
history
diff --git
a/system-linux.c
b/system-linux.c
index 488f5befbba1a6d56a28b8e389e0a55fefe82d24..d7030fb7bac8f807d60b167d4a128704afffd4fe 100644
(file)
--- a/
system-linux.c
+++ b/
system-linux.c
@@
-189,7
+189,8
@@
int system_if_down(struct device *dev)
int system_if_check(struct device *dev)
{
- return -!(system_if_resolve(dev));
+ device_set_present(dev, (system_if_resolve(dev) >= 0));
+ return 0;
}
static int system_addr(struct device *dev, struct device_addr *addr, int cmd)