From 8ee6f8a719e92a04d645c9f7e629ea5026c54d28 Mon Sep 17 00:00:00 2001 From: Choi Jaehyoung Date: Thu, 7 Sep 2017 16:31:37 +0900 Subject: [PATCH] [COMMON] iio: adc: exynos_adc: Fix prevent defect CID: 197183 - Constant variable guards dead code. Change-Id: Ibdead8ca606d8473257889e5a6bebcda2865885f Signed-off-by: Choi Jaehyoung --- drivers/iio/adc/exynos_adc.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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); -- 2.20.1