From 99e6dc68bbac5a57a0ebca810a9dc36e38667821 Mon Sep 17 00:00:00 2001 From: Hans Dedecker Date: Mon, 6 Jun 2016 14:58:33 +0200 Subject: 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 --- ubus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ubus.c') 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; -- cgit v1.2.3