OSDN Git Service

staging:iio:gyro:adis16080: remove sparse warnings
authorLeed Aguilar <leed.aguilar@ti.com>
Thu, 14 Jun 2012 15:05:31 +0000 (11:05 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Jun 2012 00:30:17 +0000 (17:30 -0700)
Removed the following sparse warning:

In function 'adis16080_read_raw':
warning: 'ut' may be used uninitialized in this function

Signed-off-by: Leed Aguilar <leed.aguilar@ti.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Cc: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/gyro/adis16080_core.c

index 11f1dcc..345e4fa 100644 (file)
@@ -82,7 +82,7 @@ static int adis16080_read_raw(struct iio_dev *indio_dev,
                             long mask)
 {
        int ret = -EINVAL;
-       u16 ut;
+       u16 ut = 0;
        /* Take the iio_dev status lock */
 
        mutex_lock(&indio_dev->mlock);