summaryrefslogtreecommitdiff
path: root/udev_remove.c
diff options
context:
space:
mode:
Diffstat (limited to 'udev_remove.c')
-rw-r--r--udev_remove.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/udev_remove.c b/udev_remove.c
index 0d536bc8ff..621fcc1960 100644
--- a/udev_remove.c
+++ b/udev_remove.c
@@ -56,8 +56,7 @@ static int delete_path(const char *path)
if (retval) {
if (errno == ENOTEMPTY)
return 0;
- dbg("rmdir(%s) failed with error '%s'",
- path, strerror(errno));
+ dbg("rmdir(%s) failed: %s", path, strerror(errno));
break;
}
dbg("removed '%s'", path);
@@ -153,8 +152,8 @@ int udev_remove_device(struct udevice *udev)
dbg("remove name='%s'", udev->name);
udev_db_delete_device(udev);
} else {
- dbg("'%s' not found in database, using kernel name '%s'", udev->devpath, udev->kernel_name);
- strlcpy(udev->name, udev->kernel_name, sizeof(udev->name));
+ dbg("'%s' not found in database, don't remove anything", udev->devpath);
+ return -1;
}
return delete_node(udev);