summaryrefslogtreecommitdiffhomepage
path: root/ubus.c
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2016-06-06 14:58:33 +0200
committerFelix Fietkau <nbd@nbd.name>2016-06-06 15:42:01 +0200
commit99e6dc68bbac5a57a0ebca810a9dc36e38667821 (patch)
treef409710faa2cada362e965421ebb1798527e0b91 /ubus.c
parentca2f99575937b183618e425a73b45bcc277b5541 (diff)
system-linux: Replace device_get by device_find where appropriate
Replace device_get by device_find so it's clear a device needs to be found present in the device list. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'ubus.c')
-rw-r--r--ubus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ubus.c b/ubus.c
index 4184301..74cdf28 100644
--- a/ubus.c
+++ b/ubus.c
@@ -290,7 +290,7 @@ netifd_handle_set_state(struct ubus_context *ctx, struct ubus_object *obj,
if (!cur)
return UBUS_STATUS_INVALID_ARGUMENT;
- dev = device_get(blobmsg_data(cur), false);
+ dev = device_find(blobmsg_data(cur));
if (!dev)
return UBUS_STATUS_NOT_FOUND;