aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2006-08-21 02:38:48 +0200
committerKay Sievers <kay.sievers@suse.de>2006-08-21 02:38:48 +0200
commite3e7358137a35849f81a8e18ca548ded22a2b5cc (patch)
tree18c38442ff2bd19f12c42c5c729bd58cdbb4cb38
parente3396a2d383cf19092911a4643e092f6a825b2aa (diff)
downloadudev-e3e7358137a35849f81a8e18ca548ded22a2b5cc.tar.gz
db: don't create a db file for only a node name to store
-rw-r--r--udev_db.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/udev_db.c b/udev_db.c
index c3034f50..86a3ea7a 100644
--- a/udev_db.c
+++ b/udev_db.c
@@ -81,8 +81,7 @@ int udev_db_add_device(struct udevice *udev)
* create only a symlink with the name as the target
* if we don't have any interesting data to remember
*/
- if (strcmp(udev->name, udev->dev->kernel) == 0 &&
- list_empty(&udev->symlink_list) && list_empty(&udev->env_list) &&
+ if (list_empty(&udev->symlink_list) && list_empty(&udev->env_list) &&
!udev->partitions && !udev->ignore_remove) {
dbg("nothing interesting to store, create symlink");
unlink(filename);