Skip to content

Commit

Permalink
staging:iio:gyro:adis16080: remove sparse warnings
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Leed Aguilar authored and Greg Kroah-Hartman committed Jun 15, 2012
1 parent 871784a commit 4d9505a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/iio/gyro/adis16080_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4d9505a

Please sign in to comment.