summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortklauser@access.unizh.chbk <tklauser@access.unizh.chbk>2005-01-17 03:54:26 +0100
committerGreg KH <gregkh@suse.de>2005-04-26 23:21:58 -0700
commit5178355672901e2514e69cd0264f95ba155b8aba (patch)
tree361d5c2e8cbc04876806204b58dfb8178175eb02
parent085cce379a4256cd039ccda3c8198aba058c8720 (diff)
[PATCH] I tried to compile udev 050plus with the GCC 4.0 snapshot 200412119 and
-rw-r--r--udev_sysfs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/udev_sysfs.c b/udev_sysfs.c
index d46f1f26d8..1b3603df6d 100644
--- a/udev_sysfs.c
+++ b/udev_sysfs.c
@@ -381,7 +381,7 @@ int wait_for_devices_device(struct sysfs_device *devices_dev,
struct sysfs_class_device *wait_class_device_open(const char *path)
{
- struct sysfs_class_device *class_dev;
+ struct sysfs_class_device *class_dev = NULL;
int loop;
loop = WAIT_MAX_SECONDS * WAIT_LOOP_PER_SECOND;
@@ -393,7 +393,7 @@ struct sysfs_class_device *wait_class_device_open(const char *path)
usleep(1000 * 1000 / WAIT_LOOP_PER_SECOND);
}
- return (class_dev);
+ return class_dev;
}
int wait_for_class_device(struct sysfs_class_device *class_dev,
@@ -450,7 +450,7 @@ int wait_for_class_device(struct sysfs_class_device *class_dev,
struct sysfs_device *wait_devices_device_open(const char *path)
{
- struct sysfs_device *devices_dev;
+ struct sysfs_device *devices_dev = NULL;
int loop;
loop = WAIT_MAX_SECONDS * WAIT_LOOP_PER_SECOND;
@@ -462,5 +462,5 @@ struct sysfs_device *wait_devices_device_open(const char *path)
usleep(1000 * 1000 / WAIT_LOOP_PER_SECOND);
}
- return(devices_dev);
+ return devices_dev;
}