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:
7233afd
)
interface: use interface_set_main_dev() from interface_remove_link
author
Felix Fietkau
<nbd@openwrt.org>
Fri, 2 May 2014 17:07:18 +0000
(19:07 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Fri, 2 May 2014 17:07:28 +0000
(19:07 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
interface.c
patch
|
blob
|
history
diff --git
a/interface.c
b/interface.c
index f474246e155df405162ab60e67e77c66ec0c2839..65bc37d07154d64fbf010c7150d213fd0e65845f 100644
(file)
--- a/
interface.c
+++ b/
interface.c
@@
-807,7
+807,7
@@
interface_remove_link(struct interface *iface, struct device *dev)
if (dev != iface->main_dev.dev)
return UBUS_STATUS_INVALID_ARGUMENT;
-
device_remove_user(&iface->main_dev
);
+
interface_set_main_dev(iface, NULL
);
return 0;
}