projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix removal of unknown device
[project/netifd.git]
/
ubus.c
diff --git
a/ubus.c
b/ubus.c
index
d6d4188
..
2b92c78
100644
(file)
--- a/
ubus.c
+++ b/
ubus.c
@@
-592,7
+592,7
@@
netifd_iface_handle_device(struct ubus_context *ctx, struct ubus_object *obj,
device_lock();
dev = device_get(blobmsg_data(tb[DEV_NAME]), add ? 2 : 0);
- if (
add &&
!dev) {
+ if (!dev) {
ret = UBUS_STATUS_NOT_FOUND;
goto out;
}