Skip to content

Commit

Permalink
iio: adc: exynos: drop unneeded variable assignment
Browse files Browse the repository at this point in the history
The initialization of 'ret' variable in probe function is shortly after
overwritten.  This initialization is simply not used.

Addresses-Coverity: Unused value
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com>
Link: https://lore.kernel.org/r/20210410164728.8096-1-krzysztof.kozlowski@canonical.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
  • Loading branch information
Krzysztof Kozlowski authored and Jonathan Cameron committed May 17, 2021
1 parent d8218b0 commit 3cdea6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/iio/adc/exynos_adc.c
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ static int exynos_adc_probe(struct platform_device *pdev)
struct s3c2410_ts_mach_info *pdata = dev_get_platdata(&pdev->dev);
struct iio_dev *indio_dev = NULL;
bool has_ts = false;
int ret = -ENODEV;
int ret;
int irq;

indio_dev = devm_iio_device_alloc(&pdev->dev, sizeof(struct exynos_adc));
Expand Down

0 comments on commit 3cdea6e

Please sign in to comment.