From patchwork Thu Nov 12 11:01:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 324166 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp237889ils; Thu, 12 Nov 2020 03:05:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJxOkXx0vXd0v3U6jJE/e4p5nI/DOZ6ZZW0QCm5Jerv+F7zRflFyHLNBLvnpBqonXeqtbOTu X-Received: by 2002:a05:6402:1acb:: with SMTP id ba11mr4441662edb.48.1605179117267; Thu, 12 Nov 2020 03:05:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605179117; cv=none; d=google.com; s=arc-20160816; b=oM0HMdIJlK4r3jI0iMGYZvJt2LLXi3Hk1GQgTMPh8S3jd5DAac9OHL9aabhDGfyFX6 aHUdZzWwO4URvUt/Sx+YrIvESr/jI5vsZ6HaRrZLgYghIIAP0Vl8hwmAtf1ep1Ikxdrn UmDjtQL/GlItl0/D96OBcTkXhS+q9IaqDoKfmtP0/mVrsz+cat0MsbFLzSKu6wyck3I2 nU9SYAlYG4NC/Su8RJM9mclp4X0Nx6wN3j4S8xPOyqNKEXIZM6NIkJbQCr0EBWUguXgl BbLtmd6Shp947GAkLE0YOAusdHJTMNGIKrddG+0Y1HINOXxIAakMuCiCwOhihayp1fiP bjuQ== 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=ptuCzI/J/pK9IazFF47wcnYE5/wwDz9k/tG2ZC99w5I=; b=nKcZbhh0ovEF5rhInZDulMnvArEsmzti1on9SFgj2RR9zfEn3OuAvGIcOHbvi/VSNo RPjlu5phuBHitVsr8xP5qN59z2DrtrhpbqAmbJSaqz1+6VvogvhACQmKBosgUgxyidux VcVIZwJR2LuonW7EU7bFMMfJOvoqMc+eNGB0upnrjwGNhJmN7/4YjGWdmoLRq7S1HiSA 5CbX1Hjx4OnIp/Za68DzXvPTVeMey6vozgRi0+AtHnujfKJwdIUnLdjaSi6jmNSFqOs5 PlaLtH7XLg5fyLLQPULyVogLQM2wj9rZCJidUMJXJ6oat1W7XTG24yuC9Fvwu/a6tKCc RDXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=S88QmjUn; 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 h10si3596547eje.596.2020.11.12.03.05.17; Thu, 12 Nov 2020 03:05:17 -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=S88QmjUn; 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 S1727991AbgKLLFP (ORCPT + 1 other); Thu, 12 Nov 2020 06:05:15 -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 S1727984AbgKLLCS (ORCPT ); Thu, 12 Nov 2020 06:02:18 -0500 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 885C7C0613D4 for ; Thu, 12 Nov 2020 03:02:18 -0800 (PST) Received: by mail-wm1-x341.google.com with SMTP id a3so5083537wmb.5 for ; Thu, 12 Nov 2020 03:02:18 -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=ptuCzI/J/pK9IazFF47wcnYE5/wwDz9k/tG2ZC99w5I=; b=S88QmjUnNDZeCsyETNSmZySh+Xaxhs4CRH6sB6GJSY1DSznnz7bt9ghkTHRhAh0TLn BkM+vR6W06OtSum8nppStkpiiqRaeR9TCpjhvs+j9txHemmPUgV4FYSzwg860LqJ6Cr/ sF4meh0dFzqZesoi600iC+FHeaHQ5dglk9beVgL6ToV4rtSS2/e7r0j6S6gDLMqgrKRO fU6hP9QLV0Hb0s3MNfV7NkpveH+QABSfEPg4hsYlfTOTAU4eLe20s3u5E1GMISFtBT8m AjRkC4bwbsgThL1CjoTe3s5sphwQhjpV/w+VOooMmtcX/caV9R39763GY2NMVP97t2GN U/cA== 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=ptuCzI/J/pK9IazFF47wcnYE5/wwDz9k/tG2ZC99w5I=; b=GQ4Or1DQ9r/hT3t3bveJH5U29WQ/R2y/KpsIkPz73hBtPVmwLdX4LZEWxl8gkFsGZc ngJZlcBuCTASiLttmJXtGuXJHbSAbt7te14Y4s15tec7w0fACzr7n9RSpvOMnAGEsSLU OaktoUnTXyMXIcce/PkAThjR+lPnARNHKa+CJW/1YtXepxdnj1gpcV/NktSf8Laoga5A IW8Uey3xTW59JuG6PkhdYah6iLAWj1dul2DcbMXffCrXv+JlhDg5OtEz2ptBPi6/DFg6 mpAbbcdUd1DHAJBkFcduelk/wConFZz5VSvheDR+l46PeevbtcTk+xccx2w1T6KO43G3 HbVg== X-Gm-Message-State: AOAM530UPs9aASQtY1qkc8IS/6Qu60tZS7pBbh9rKJ0uRq7thh8mXCnb DKQeLsqVqCvOp1HP2bter86RbQ== X-Received: by 2002:a7b:ce84:: with SMTP id q4mr2954963wmj.26.1605178937333; Thu, 12 Nov 2020 03:02:17 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id x81sm6515329wmg.5.2020.11.12.03.02.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Nov 2020 03:02:16 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Dmitry Torokhov , Henrik Rydberg , James Hilliard , Daniel Ritz , linux-input@vger.kernel.org Subject: [PATCH 07/15] input: touchscreen: usbtouchscreen: Remove unused variable 'ret' Date: Thu, 12 Nov 2020 11:01:56 +0000 Message-Id: <20201112110204.2083435-8-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/usbtouchscreen.c: In function ‘nexio_read_data’: drivers/input/touchscreen/usbtouchscreen.c:1052:50: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] Cc: Dmitry Torokhov Cc: Henrik Rydberg Cc: James Hilliard Cc: Daniel Ritz Cc: linux-input@vger.kernel.org Signed-off-by: Lee Jones --- drivers/input/touchscreen/usbtouchscreen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.25.1 diff --git a/drivers/input/touchscreen/usbtouchscreen.c b/drivers/input/touchscreen/usbtouchscreen.c index 397cb1d3f481b..c3b7130cd9033 100644 --- a/drivers/input/touchscreen/usbtouchscreen.c +++ b/drivers/input/touchscreen/usbtouchscreen.c @@ -1049,7 +1049,7 @@ static int nexio_read_data(struct usbtouch_usb *usbtouch, unsigned char *pkt) unsigned int data_len = be16_to_cpu(packet->data_len); unsigned int x_len = be16_to_cpu(packet->x_len); unsigned int y_len = be16_to_cpu(packet->y_len); - int x, y, begin_x, begin_y, end_x, end_y, w, h, ret; + int x, y, begin_x, begin_y, end_x, end_y, w, h; /* got touch data? */ if ((pkt[0] & 0xe0) != 0xe0) @@ -1061,7 +1061,7 @@ static int nexio_read_data(struct usbtouch_usb *usbtouch, unsigned char *pkt) x_len -= 0x80; /* send ACK */ - ret = usb_submit_urb(priv->ack, GFP_ATOMIC); + usb_submit_urb(priv->ack, GFP_ATOMIC); if (!usbtouch->type->max_xc) { usbtouch->type->max_xc = 2 * x_len;