Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp257631pxb; Thu, 12 Nov 2020 03:07:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJzuFNFYyHdzCaV3Th9GFIyHyYOmP8jwOZeT5TJtlv39roO/io3P7Uk/9lAyMl53m47dpyf7 X-Received: by 2002:a17:906:f752:: with SMTP id jp18mr28437250ejb.331.1605179266461; Thu, 12 Nov 2020 03:07:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605179266; cv=none; d=google.com; s=arc-20160816; b=l1ero/O9uva6qV9v+DJ8a80f62g7i2NI8wISfe1wrDtOb9ITfEiYwpFN+VINHg0rYN CZFeaAxreUQbvxPvVbXg/Mxd8jQnGDSYN1qN39zlXKNkL5lb1QGoqg8C4QDDH8NgFZ4i 5GPPRNb+w7HcYxVCumZV1bzg3mzTHPrq4tpEkdDOR/hcUzyyxJiq7jkWb2rAX5SFIPFG eAAzoLur99K4NQFiuetsT8RC7qk3fi8s7FgPYekTeTdMmeeKTX6MD/5mnvvJfBaSCsis CduaixFJT0Sjp701judkZRxCF0rWk/8xCpZZL7953mU2q9uZgb9idUexsyUKdaqysKmk uQoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=kWLlC6ktlLXwXUeWXx8bHoPHYfcR3KsyU0jvMMlPcPs=; b=EXl4/Y5lZCxSLc1jY41DMOHxRMlRAVjJsSEoYpKnpaOSqxxrsluAmHu36Ab1IHMKCm uYAvdhUYWUS+UsuxOwUlLKkVChifsErz3c5DFWEBYt1h6SZI/mwJs5uE+DJSZS7w0XuF 9oscegf4x9wmmLMd1Y+3SrOBZNrVU3mBSLMe30xI+wW23v7dFOb/zYeHAMS191wR9AO2 QkZXQSlMrCWlTcZlDRnAHzu2VWgE3zHo/iTpL19VJa56ZoUHVC8+WcRHsekUgdfLOzgb hw7Xza5jBmhnCPT2tIEnLO3wnwfOF34QlIbN1bS+Pqt1cQ9PFA0p3svrHOoQNLUnmjMr 2zXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="SObc/VTe"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rk26si3618842ejb.453.2020.11.12.03.07.23; Thu, 12 Nov 2020 03:07:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="SObc/VTe"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728011AbgKLLF1 (ORCPT + 99 others); Thu, 12 Nov 2020 06:05:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728034AbgKLLCQ (ORCPT ); Thu, 12 Nov 2020 06:02:16 -0500 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC45FC0613D4 for ; Thu, 12 Nov 2020 03:02:15 -0800 (PST) Received: by mail-wm1-x344.google.com with SMTP id 10so4884436wml.2 for ; Thu, 12 Nov 2020 03:02:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=kWLlC6ktlLXwXUeWXx8bHoPHYfcR3KsyU0jvMMlPcPs=; b=SObc/VTeOY+p3UM45yQu+wx/n3vgLtnbs9/szCWi/Uvo6w0HOls+v+TDcCpiyOdtjC P3KGg0WoiPwPeYRB0YFAgeyLc0PHY9HMa4GQKPdksXYiNyoBz/ky+mK+k4bw3yjZixIu pYo5hFOvjY2WbyYn0McFr1GmUahWvP/q4wVCEtfYVpe+rbnZB6hperaWhadArmTxgwyp n0vDXHjgwqjaPxVewspdN+8qb7FEvKMwxUMUhwMbricwRpPHRawwjoSHoyi/tX+wcOKT L2omsdN7pcDaFR/6bivTcwDg+VgOBMSqtLus+U42ROhy2NIWfZtIT73pidnvJMktxlOd YUCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=kWLlC6ktlLXwXUeWXx8bHoPHYfcR3KsyU0jvMMlPcPs=; b=Qbo3aiJqq3ZMqebzbdwVIWFV3ROb55W+Gu5/wxUEhAW+zeW19Y2dPp8y1OZVypKR/Z oAJkOaWA/jj4TH6uFaPT1zLRVcwx65JrIJNUpZpTYX2T44czw0vAzEZTCu5gWhv6iYuZ SyTj/FY729RAGvyiMpPDAfNIpoWFj1flB0yrFcIZ+rvillERSNXS+lAmOUz6zt3Yom8J CJ2SHxSRSrFd2v2JKcmhnWaUUQQIDNB9oZZRMSYzxo7uysHIRpZRbtKah2/Ug6fTFA9W pu7Nl1LvudMUbukGsHl9NOh5HrMXYSfCJPnEb0wIBIKZTmQdl6AdaTk0ZYIVyVyTno9N uEsA== X-Gm-Message-State: AOAM533cnwm5md0003nPUaSZqJxHiNEEeJmnk9s8hD1ed4IZV1CetwFg 8gBqgSpIYK4mS5b4MdMWX+uaJg== X-Received: by 2002:a1c:2c2:: with SMTP id 185mr9137231wmc.103.1605178934689; Thu, 12 Nov 2020 03:02:14 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id x81sm6515329wmg.5.2020.11.12.03.02.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Nov 2020 03:02:14 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Dmitry Torokhov , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Haibo Chen , linux-input@vger.kernel.org Subject: [PATCH 05/15] input: touchscreen: imx6ul_tsc: Remove set but unused variable 'value' Date: Thu, 12 Nov 2020 11:01:54 +0000 Message-Id: <20201112110204.2083435-6-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201112110204.2083435-1-lee.jones@linaro.org> References: <20201112110204.2083435-1-lee.jones@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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] Cc: Dmitry Torokhov Cc: Shawn Guo Cc: Sascha Hauer Cc: Pengutronix Kernel Team Cc: Fabio Estevam Cc: NXP Linux Team Cc: Haibo Chen Cc: linux-input@vger.kernel.org Signed-off-by: Lee Jones --- drivers/input/touchscreen/imx6ul_tsc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/input/touchscreen/imx6ul_tsc.c b/drivers/input/touchscreen/imx6ul_tsc.c index cd369f9ac5e60..e1852f7d4d31e 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); } -- 2.25.1