diff options
author | Leed Aguilar <leed.aguilar@ti.com> | 2012-06-14 15:05:31 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-06-15 00:30:17 (GMT) |
commit | 4d9505af7743828464d066795c6e1311c7884db4 (patch) | |
tree | 752f5342d827a9eaeecdec7ac990ba74597729ca /drivers | |
parent | 871784a5f86323ce654ba56e1f5e85f717a53a5e (diff) | |
download | linux-4d9505af7743828464d066795c6e1311c7884db4.tar.xz |
staging:iio:gyro:adis16080: remove sparse warnings
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/iio/gyro/adis16080_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/gyro/adis16080_core.c b/drivers/staging/iio/gyro/adis16080_core.c index 11f1dcc..345e4fa 100644 --- a/drivers/staging/iio/gyro/adis16080_core.c +++ b/drivers/staging/iio/gyro/adis16080_core.c @@ -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); |