Commit 4d9505af authored by Leed Aguilar's avatar Leed Aguilar Committed by Greg Kroah-Hartman

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: default avatarLeed Aguilar <leed.aguilar@ti.com>
Acked-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Cc: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 871784a5
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment