diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-10-06 17:41:40 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-10-06 17:41:40 +0200 |
commit | e443a041117d0d09e81a9797d205e5b70c481b15 (patch) | |
tree | 86f01632e9dd32b1d05812df0c3f7ee98ab70345 /device.c | |
parent | 3de7978b64876a1dc5e3eab8735a801971423820 (diff) |
only show the "Create new device.." message if there is no old device
Diffstat (limited to 'device.c')
-rw-r--r-- | device.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -424,7 +424,6 @@ device_create(const char *name, const struct device_type *type, struct device *odev = NULL, *dev; enum dev_change_type change; - D(DEVICE, "Create new device '%s' (%s)\n", name, type->name); config = config_memdup(config); if (!config) return NULL; @@ -452,7 +451,8 @@ device_create(const char *name, const struct device_type *type, device_delete(odev); break; } - } + } else + D(DEVICE, "Create new device '%s' (%s)\n", name, type->name); dev = type->create(config); if (!dev) |