From: Lee Jones Date: Fri, 13 Nov 2020 07:34:13 +0000 (-0800) Subject: Input: imx6ul_tsc - remove set but unused variable 'value' X-Git-Tag: v5.15~74^2~37^2~66 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cd536aa5b438351ea170d5e5f0cd75650eaab005;p=platform%2Fkernel%2Flinux-starfive.git Input: imx6ul_tsc - remove set but unused variable 'value' Fixes the following W=1 kernel build warning(s): drivers/input/touchscreen/imx6ul_tsc.c: In function ‘adc_irq_fn’: drivers/input/touchscreen/imx6ul_tsc.c:307:6: warning: variable ‘value’ set but not used [-Wunused-but-set-variable] Signed-off-by: Lee Jones Reviewed-by: Haibo Chen Link: https://lore.kernel.org/r/20201112110204.2083435-6-lee.jones@linaro.org Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/touchscreen/imx6ul_tsc.c b/drivers/input/touchscreen/imx6ul_tsc.c index cd369f9..e1852f7 100644 --- a/drivers/input/touchscreen/imx6ul_tsc.c +++ b/drivers/input/touchscreen/imx6ul_tsc.c @@ -304,11 +304,10 @@ static irqreturn_t adc_irq_fn(int irq, void *dev_id) { struct imx6ul_tsc *tsc = dev_id; u32 coco; - u32 value; coco = readl(tsc->adc_regs + REG_ADC_HS); if (coco & 0x01) { - value = readl(tsc->adc_regs + REG_ADC_R0); + readl(tsc->adc_regs + REG_ADC_R0); complete(&tsc->completion); }