iio: adc: exynos: drop unneeded variable assignment
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Sat, 10 Apr 2021 16:47:28 +0000 (18:47 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 17 May 2021 12:49:04 +0000 (13:49 +0100)
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>
drivers/iio/adc/exynos_adc.c

index 8c98d8c9ab1f8dc0cf8aa113897dc1cfcad8da1d..3b3868aa2533087f79c24d3c79b225403b4f4757 100644 (file)
@@ -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));