iio: adc: exynos: drop unneeded variable assignment
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>
This commit is contained in:
parent
d8218b0de5
commit
3cdea6e9a8
@ -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 s3c2410_ts_mach_info *pdata = dev_get_platdata(&pdev->dev);
|
||||||
struct iio_dev *indio_dev = NULL;
|
struct iio_dev *indio_dev = NULL;
|
||||||
bool has_ts = false;
|
bool has_ts = false;
|
||||||
int ret = -ENODEV;
|
int ret;
|
||||||
int irq;
|
int irq;
|
||||||
|
|
||||||
indio_dev = devm_iio_device_alloc(&pdev->dev, sizeof(struct exynos_adc));
|
indio_dev = devm_iio_device_alloc(&pdev->dev, sizeof(struct exynos_adc));
|
||||||
|
Loading…
Reference in New Issue
Block a user