From patchwork Thu Nov 12 11:01:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 324169 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp238496ils; Thu, 12 Nov 2020 03:06:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJzdouFVMJs/f1R5czj+GFBC4r8p4OJutGBCihOTGopHNRaf9a3Xoyt6ZFYYzJCiBZgeGQYP X-Received: by 2002:a17:906:180b:: with SMTP id v11mr29481662eje.466.1605179167010; Thu, 12 Nov 2020 03:06:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605179167; cv=none; d=google.com; s=arc-20160816; b=dycEYec27WVS/i9oiUQyou3XGGnYGgXcdHyq/kRmjNXcCukEVrOxVb1OLTv38HabT+ ZkHv2at4Xmx7Eg6wzNoVD5gRvMllrIuVJbxy23WphCZv2EHfylBGpI2ELrkrBEl9zfjC SwTKp3D3SWRJ3UcCyxItaRO5QdzmMhYFFuronrGpyMSiZAtp/kIskyuVxh2An5FA1+6d xmVpgoXeBi6pvPzZkfAraTJjlum0fSt9twAB2UcPPr8ZKoOICGkjZ9k/JDS5FRm503M5 +p/fVKOuj/E9P9C/R6O3OXLFEjN+eaK0mpYgR7eT5CBXv+ZcfjzYrKonLPsBnuh8iHwj wmBA== 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=wAPuN747pUjPpZwHLZVN2sRqXwgU2vNWeut20io3jq60fjRM3YHFC+CsE9nJf4+4Wi X5KbXjBZ0ksnPCZSJYHYiJJDdOIp0eDUy+w0I2iwmheptVD/CLvsLj3rlIRQOXmrAq0n LiTWqe9vSjiNNoqJsd3fROC7uWaXgA69mNp61DO3d/YtxHqwuI0zOr8I4M99vT7H7pUx qldVlrNeTnBnLzzCQyzptgZ9OrMcpuR6cytMUQox61s8m2Fz/p+rwelPx18ra9YZ8PvH 2dAMVwPD0WE/FLIhmZvDfgirD7POA54nmfifGVCUZCJtKKV9ePytxE6C+Kwex5/9uPoy 4RwA== 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-input-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-input-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 y13si4147261edp.325.2020.11.12.03.06.06; Thu, 12 Nov 2020 03:06:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-input-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-input-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-input-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 S1727611AbgKLLF0 (ORCPT + 1 other); Thu, 12 Nov 2020 06:05:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728042AbgKLLCQ (ORCPT ); Thu, 12 Nov 2020 06:02:16 -0500 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0BEDC0617A6 for ; Thu, 12 Nov 2020 03:02:15 -0800 (PST) Received: by mail-wm1-x343.google.com with SMTP id 23so5918586wmg.1 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=IKMGeQJYG1KtRtMAXkZopY2HAV1TKiMEhmj2Q+Z4tusv4dE/v54E4xaLq1CxWY/1rg XtY8JeoVpXDPSF5AqqBuW8PG0mM1sEqF3SSTk4dupxl7bDl+d8XDpMHX3eHj0tb/zUzX 2JTUhY/TzJLX8klrmP0dwHifWs2Ff38CE7pfNbENurpz3wf2h9xZVHB7F+5WJ6lUU6ps mYY5Bj4G0rsOTjpLHg4Yj5gDL/QLrWqSfiG214J1+pAiKfsEWnIQdXdW26A8LzZP2e6W 0GL6JjVlyypWg06hZXy911k72nWGkzuwk8z3k3AErQdt1sztW2+odd+cK4TKzotzHqsX aJew== X-Gm-Message-State: AOAM532u3XjwmkFPR8A4dzrY2uFAT1uQo3NS+ox5QIHvq//K2/mk1si+ Evx+GGXlQsGn2IKEggd+j75bRQ== 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 Precedence: bulk List-ID: X-Mailing-List: linux-input@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(-) -- 2.25.1 Reviewed-by: Haibo Chen 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); }