Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1315171 > unrolled thread
| Started by | Colin King <colin.king@canonical.com> |
|---|---|
| First post | 2016-01-22 18:50 +0100 |
| Last post | 2016-01-23 17:40 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH] iio: adc: axp288: remove redundant duplicate const on axp288_adc_channels Colin King <colin.king@canonical.com> - 2016-01-22 18:50 +0100
Re: [PATCH] iio: adc: axp288: remove redundant duplicate const on axp288_adc_channels Jonathan Cameron <jic23@kernel.org> - 2016-01-23 17:40 +0100
| From | Colin King <colin.king@canonical.com> |
|---|---|
| Date | 2016-01-22 18:50 +0100 |
| Subject | [PATCH] iio: adc: axp288: remove redundant duplicate const on axp288_adc_channels |
| Message-ID | <qTO0q-7kv-13@gated-at.bofh.it> |
From: Colin Ian King <colin.king@canonical.com>
duplicate const can be removed, it is redundant. Found by static
analysis using smatch.
Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
drivers/iio/adc/axp288_adc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iio/adc/axp288_adc.c b/drivers/iio/adc/axp288_adc.c
index 0c904ed..7fd2494 100644
--- a/drivers/iio/adc/axp288_adc.c
+++ b/drivers/iio/adc/axp288_adc.c
@@ -46,7 +46,7 @@ struct axp288_adc_info {
struct regmap *regmap;
};
-static const struct iio_chan_spec const axp288_adc_channels[] = {
+static const struct iio_chan_spec axp288_adc_channels[] = {
{
.indexed = 1,
.type = IIO_TEMP,
--
2.7.0.rc3
[toc] | [next] | [standalone]
| From | Jonathan Cameron <jic23@kernel.org> |
|---|---|
| Date | 2016-01-23 17:40 +0100 |
| Subject | Re: [PATCH] iio: adc: axp288: remove redundant duplicate const on axp288_adc_channels |
| Message-ID | <qU9of-5ok-19@gated-at.bofh.it> |
| In reply to | #1315171 |
On 22/01/16 17:49, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> duplicate const can be removed, it is redundant. Found by static
> analysis using smatch.
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
Applied, thanks,
Jonathan
> ---
> drivers/iio/adc/axp288_adc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/iio/adc/axp288_adc.c b/drivers/iio/adc/axp288_adc.c
> index 0c904ed..7fd2494 100644
> --- a/drivers/iio/adc/axp288_adc.c
> +++ b/drivers/iio/adc/axp288_adc.c
> @@ -46,7 +46,7 @@ struct axp288_adc_info {
> struct regmap *regmap;
> };
>
> -static const struct iio_chan_spec const axp288_adc_channels[] = {
> +static const struct iio_chan_spec axp288_adc_channels[] = {
> {
> .indexed = 1,
> .type = IIO_TEMP,
>
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web