[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1339686331-9788-1-git-send-email-leed.aguilar@ti.com>
Date: Thu, 14 Jun 2012 11:05:31 -0400
From: Leed Aguilar <leed.aguilar@...com>
To: <linux-kernel@...r.kernel.org>, <gregkh@...uxfoundation.org>
CC: <leed.aguilar@...com>, Jonathan Cameron <jic23@...nel.org>
Subject: [PATCH] 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@...com>
Acked-by: Lars-Peter Clausen <lars@...afoo.de>
Cc: Jonathan Cameron <jic23@...nel.org>
---
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);
--
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists