projects
/
oweals
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3de7978
)
only show the "Create new device.." message if there is no old device
author
Felix Fietkau
<nbd@openwrt.org>
Thu, 6 Oct 2011 15:41:40 +0000
(17:41 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Thu, 6 Oct 2011 15:41:40 +0000
(17:41 +0200)
device.c
patch
|
blob
|
history
diff --git
a/device.c
b/device.c
index ac0954df43b4c227872872e90c8ed74627683c9f..bceba62cd40573e2f364d90fbf8fa936d9b025be 100644
(file)
--- a/
device.c
+++ b/
device.c
@@
-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)