summaryrefslogtreecommitdiff
path: root/namedev.c
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-11-28 14:01:43 +0100
committerGreg KH <gregkh@suse.de>2005-04-26 23:00:29 -0700
commit45a7b668eca398831c0cfc39e4237494b3d603e9 (patch)
tree5511036e08b8163fc42c5df50e4b07a5970daa94 /namedev.c
parent4497fcbf7159975560b680fd8130adcd414d3d67 (diff)
[PATCH] remove unused variables
Remove udev.bus, cause it's currently unused and newer kernels will pass it in the hotplug environment as PHYSDEVBUS. Remove udev.action, cause it's unused. Rename udev_set_values() to udev_init_device().
Diffstat (limited to 'namedev.c')
-rw-r--r--namedev.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/namedev.c b/namedev.c
index 8976b8d40a..c043cf339e 100644
--- a/namedev.c
+++ b/namedev.c
@@ -708,7 +708,6 @@ try_parent:
return -ENODEV;
dbg("sysfs_device->path='%s'", sysfs_device->path);
dbg("sysfs_device->bus_id='%s'", sysfs_device->bus_id);
- dbg("sysfs_device->bus='%s'", sysfs_device->bus);
}
}
@@ -742,7 +741,6 @@ int namedev_name_device(struct udevice *udev, struct sysfs_class_device *class_d
dbg("found devices device: path='%s', bus_id='%s', bus='%s'",
sysfs_device->path, sysfs_device->bus_id, sysfs_device->bus);
strfieldcpy(udev->bus_id, sysfs_device->bus_id);
- strfieldcpy(udev->bus, sysfs_device->bus);
}
strfieldcpy(udev->kernel_name, class_dev->name);