* [PATCH] staging: IIO: DAC: Delete useless label error_ret in ade7854.c
@ 2011-08-06 18:24 stufever
2011-08-12 8:50 ` Jonathan Cameron
0 siblings, 1 reply; 2+ messages in thread
From: stufever @ 2011-08-06 18:24 UTC (permalink / raw)
To: linux-kernel; +Cc: linux-iio, gregkh, jic23, Wang Shaoyan
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.
Signed-off-by: Wang Shaoyan <wangshaoyan.pt@taobao.com>
---
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);
--
1.7.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] staging: IIO: DAC: Delete useless label error_ret in ade7854.c
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
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2011-08-12 8:50 UTC (permalink / raw)
To: stufever; +Cc: linux-kernel, linux-iio, gregkh, Wang Shaoyan
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);
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-08-12 8:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox