diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2016-11-21 15:05:08 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2016-11-22 10:45:07 +0100 |
commit | 153a12143b9fef4b5d3c3a6597f6fe967a17c9d7 (patch) | |
tree | 56f75d62d7f6a5ac01546700115be777b20b9dff | |
parent | 97692acd9e00d3c57cd399fbb0980717d4033659 (diff) | |
download | netifd-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |