From: Lars-Peter Clausen <lars@metafoo.de>
To: Leed Aguilar <leed.aguilar@ti.com>
Cc: linux-iio@vger.kernel.org, Jonathan Cameron <jic23@kernel.org>
Subject: Re: [PATCH] staging:iio:gyro:adis16080: remove sparse warnings
Date: Wed, 13 Jun 2012 10:38:12 +0200 [thread overview]
Message-ID: <4FD85174.3080706@metafoo.de> (raw)
In-Reply-To: <1339532721-2903-1-git-send-email-leed.aguilar@ti.com>
On 06/12/2012 10:25 PM, Leed Aguilar wrote:
> 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>
> Cc: Jonathan Cameron <jic23@kernel.org>
> Cc: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Thanks
>
> ---
> 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);
next prev parent reply other threads:[~2012-06-13 8:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-12 20:25 [PATCH] staging:iio:gyro:adis16080: remove sparse warnings Leed Aguilar
2012-06-13 8:38 ` Lars-Peter Clausen [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-06-14 15:05 Leed Aguilar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FD85174.3080706@metafoo.de \
--to=lars@metafoo.de \
--cc=jic23@kernel.org \
--cc=leed.aguilar@ti.com \
--cc=linux-iio@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.