summaryrefslogtreecommitdiff
path: root/udev_utils.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 /udev_utils.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 'udev_utils.c')
-rw-r--r--udev_utils.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/udev_utils.c b/udev_utils.c
index bdf0233e3a..aa5c75f74d 100644
--- a/udev_utils.c
+++ b/udev_utils.c
@@ -36,8 +36,7 @@
#include "list.h"
-void udev_set_values(struct udevice *udev, const char* devpath,
- const char *subsystem, const char* action)
+void udev_init_device(struct udevice *udev, const char* devpath, const char *subsystem)
{
memset(udev, 0x00, sizeof(struct udevice));
@@ -45,8 +44,6 @@ void udev_set_values(struct udevice *udev, const char* devpath,
strfieldcpy(udev->devpath, devpath);
if (subsystem)
strfieldcpy(udev->subsystem, subsystem);
- if (action)
- strfieldcpy(udev->action, action);
if (strcmp(udev->subsystem, "block") == 0)
udev->type = 'b';