summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2016-11-21 15:05:08 +0100
committerFelix Fietkau <nbd@nbd.name>2016-11-22 10:45:07 +0100
commit153a12143b9fef4b5d3c3a6597f6fe967a17c9d7 (patch)
tree56f75d62d7f6a5ac01546700115be777b20b9dff
parent97692acd9e00d3c57cd399fbb0980717d4033659 (diff)
downloadnetifd-153a12143b9fef4b5d3c3a6597f6fe967a17c9d7.tar.gz
device: Use device_find for better readibility in device_create
Use device_find in device_create so it's clear a device lookup is being done in the device list. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
-rw-r--r--device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/device.c b/device.c
index 82596e4..3c57a02 100644
--- a/device.c
+++ b/device.c
@@ -937,7 +937,7 @@ device_create(const char *name, struct device_type *type,
struct device *odev = NULL, *dev;
enum dev_change_type change;
- odev = device_get(name, false);
+ odev = device_find(name);
if (odev) {
odev->current_config = true;
change = device_apply_config(odev, type, config);