From: Choi Jaehyoung Date: Thu, 7 Sep 2017 07:31:37 +0000 (+0900) Subject: [COMMON] iio: adc: exynos_adc: Fix prevent defect X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8ee6f8a719e92a04d645c9f7e629ea5026c54d28;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] iio: adc: exynos_adc: Fix prevent defect CID: 197183 - Constant variable guards dead code. Change-Id: Ibdead8ca606d8473257889e5a6bebcda2865885f Signed-off-by: Choi Jaehyoung --- diff --git a/drivers/iio/adc/exynos_adc.c b/drivers/iio/adc/exynos_adc.c index 8d7e7227815c..10508e3238e0 100644 --- a/drivers/iio/adc/exynos_adc.c +++ b/drivers/iio/adc/exynos_adc.c @@ -939,7 +939,6 @@ static int exynos_adc_probe(struct platform_device *pdev) struct device_node *np = pdev->dev.of_node; struct iio_dev *indio_dev = NULL; struct resource *mem; - bool has_ts = false; int ret = -ENODEV; int irq; unsigned int sysreg; @@ -1073,10 +1072,7 @@ static int exynos_adc_probe(struct platform_device *pdev) err_of_populate: device_for_each_child(&indio_dev->dev, NULL, exynos_adc_remove_devices); - if (has_ts) { - input_unregister_device(info->input); - free_irq(info->tsirq, info); - } + #ifdef ADC_TS err_iio: iio_device_unregister(indio_dev);