diff options
author | Kay Sievers <kay.sievers@suse.de> | 2005-11-10 01:50:06 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@suse.de> | 2005-11-10 01:50:06 +0100 |
commit | 53899a171ea862124b49c75b7511b7eb30742ef9 (patch) | |
tree | 6552376fba823d79c2f84c9a38b67244b9ed2437 /udev_remove.c | |
parent | f5f8f316aa66251d0ccf71b940182a9d00dbd040 (diff) |
fix tests and remove no longer useful stuff
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Diffstat (limited to 'udev_remove.c')
-rw-r--r-- | udev_remove.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/udev_remove.c b/udev_remove.c index cb5523af92..4d1b9286a0 100644 --- a/udev_remove.c +++ b/udev_remove.c @@ -152,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, don't remove anything", udev->devpath); - return -1; + dbg("'%s' not found in database, using kernel name '%s'", udev->devpath, udev->kernel_name); + strlcpy(udev->name, udev->kernel_name, sizeof(udev->name)); } return delete_node(udev); |