chiark / gitweb /
[PATCH] remove double initialization
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>
Sun, 12 Dec 2004 01:54:55 +0000 (02:54 +0100)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 06:13:48 +0000 (23:13 -0700)
udev.c

diff --git a/udev.c b/udev.c
index b1ba1435e7236926e905e7f20959058954b906fe..4d25ed267a6442328f8af44b6d311246dfe0ab8b 100644 (file)
--- a/udev.c
+++ b/udev.c
@@ -101,11 +101,11 @@ int main(int argc, char *argv[], char *envp[])
        struct sysfs_device *devices_dev;
        struct udevice udev;
        char path[SYSFS_PATH_MAX];
-       int retval = -EINVAL;
        const char *error;
-       const char *action = getenv("ACTION");
-       const char *devpath = getenv("DEVPATH");
-       const char *subsystem = argv[1];
+       const char *action;
+       const char *devpath;
+       const char *subsystem;
+       int retval = -EINVAL;
 
        if (argc == 2 && strcmp(argv[1], "-V") == 0) {
                printf("%s\n", UDEV_VERSION);