From: Jonathan Cameron <jic23@cam.ac.uk>
To: stufever@gmail.com
Cc: linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org,
gregkh@suse.de, Wang Shaoyan <wangshaoyan.pt@taobao.com>
Subject: Re: [PATCH] staging: IIO: DAC: Delete useless label error_ret in ade7854.c
Date: Fri, 12 Aug 2011 09:50:39 +0100 [thread overview]
Message-ID: <4E44E95F.6070402@cam.ac.uk> (raw)
In-Reply-To: <1312655064-28311-1-git-send-email-wangshaoyan.pt@taobao.com>
On 08/06/11 19:24, stufever@gmail.com wrote:
> From: Wang Shaoyan <wangshaoyan.pt@taobao.com>
>
> drivers/staging/iio/meter/ade7854.c: In function 'ade7854_probe':
> drivers/staging/iio/meter/ade7854.c:585: warning: label 'error_ret' defined but not used
>
> The label error_ret is defined, but never used, so delete it to avoid annoying warning.
Have equivalent in our dev tree, but happy to see this version merge instead.
For reference, we have all sparse / coccinelle and smatch warnings fixed in iio-blue.git.
I'll be pushing the cleanup bits of that tree out sometime fairly soon.
>
> Signed-off-by: Wang Shaoyan <wangshaoyan.pt@taobao.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
> ---
> drivers/staging/iio/meter/ade7854.c | 1 -
> 1 files changed, 0 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/staging/iio/meter/ade7854.c b/drivers/staging/iio/meter/ade7854.c
> index b82659f..ac3f9d5 100644
> --- a/drivers/staging/iio/meter/ade7854.c
> +++ b/drivers/staging/iio/meter/ade7854.c
> @@ -582,7 +582,6 @@ error_unreg_dev:
> iio_device_unregister(indio_dev);
> error_free_dev:
> iio_free_device(indio_dev);
> -error_ret:
> return ret;
> }
> EXPORT_SYMBOL(ade7854_probe);
prev parent reply other threads:[~2011-08-12 8:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-06 18:24 [PATCH] staging: IIO: DAC: Delete useless label error_ret in ade7854.c stufever
2011-08-12 8:50 ` Jonathan Cameron [this message]
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=4E44E95F.6070402@cam.ac.uk \
--to=jic23@cam.ac.uk \
--cc=gregkh@suse.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=stufever@gmail.com \
--cc=wangshaoyan.pt@taobao.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox