From patchwork Thu Jan 14 15:23:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 362862 Delivered-To: patch@linaro.org Received: by 2002:a02:ccad:0:0:0:0:0 with SMTP id t13csp598101jap; Thu, 14 Jan 2021 07:25:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJxd8Yb7p38rGyIjxKoz+m+ojJX3TG5KIHvR6wyWNDxWiZlZ0tZKiSkrKZoVtaf31Q9GnMFV X-Received: by 2002:a17:906:4e45:: with SMTP id g5mr5634949ejw.391.1610637934500; Thu, 14 Jan 2021 07:25:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610637934; cv=none; d=google.com; s=arc-20160816; b=CZUlMsMQSELPue94kaU//PfjEyqASzz9Ldy8VdynWsR/voTG7yx2rPd0Q7IfU366PJ IhKe9UUSYjB70XEpYvLirlgMCe5T1we4bRMjnKuIAbvkx1RtJUg6CccQWrPD/FhXOzb6 LGLo3BC6R4MuADfh6az5KEKO9nXSMzjKuln69OtqnNIGx2PB6mtlkTN/XrsPkiRsv+lK eiz6JnTX8iUWWGvGDjj4xf3FG4HSlzxNfMm3k25WvPVB16qRXaotw1fyVuqBEpECAy0j Ue9MUVDDSnP0ZdDMYv6IF6aNAFCm7xDS1u84O6eiwtKH39FB6HIZA9Anpw9vLRiZNfY0 5Rcw== 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=YJZuOyPoke9O1aNcUMwMh4SJuqZZoxbP5+ZVqt4w+RI=; b=T7KBb0gXIV1PLQpiXICUDqjYc3G+wQF101lr69SofLQnmsNfpAoWdRlGZzX0IcCw4O TZJDIs2blRMnxFAItn8VKfJ0Ole8v8q2wnXSw5fp5WEYXglkAN4v2SKm13DByZ+ilXyo jET9Y/WxZ8jkNIwYgG96jyt3jO72Rigljo5WdKXpsR9rxrvbhRAuzNkQWgTuRxm0qch1 Q4cyNUXQQf7CNIzoXfsTQ6OyeJUgq+MkCDRtppfCXJz11kbmGIqNYc7zR+7hG/bGGjht GjkX9640L+4tJH3MEYb4jvMJY/vH8X5fP2qBPbie7UQ0H+BWfLKM1F/DTBiRrw5rmtJL IOag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=r2JSG1IJ; 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 a5si2449825ejr.334.2021.01.14.07.25.34; Thu, 14 Jan 2021 07:25:34 -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=r2JSG1IJ; 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 S1729407AbhANPYz (ORCPT + 1 other); Thu, 14 Jan 2021 10:24:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728544AbhANPYy (ORCPT ); Thu, 14 Jan 2021 10:24:54 -0500 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3FF3C061795 for ; Thu, 14 Jan 2021 07:23:40 -0800 (PST) Received: by mail-wm1-x336.google.com with SMTP id v184so820207wma.1 for ; Thu, 14 Jan 2021 07:23:40 -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=YJZuOyPoke9O1aNcUMwMh4SJuqZZoxbP5+ZVqt4w+RI=; b=r2JSG1IJnbN0WfX5sB5L2Cq/teMhRCtH4rBbnSLTPluaLtMGJxUn/XATcotrcaLRE5 utL3DvHa7fsz/+QlHoykplDmscM0XvWs860rgqW1CAGZzKuEyBjxBcw83hqZnMKvnw0Z YCxnS2KxO4crQJsEz4E0IzO1xCMvxSnGajqw6MauczaDwZ55uWYBILR4M9wdIFwkt410 U42gupjSDuysYDyYU326nDWgeuM8i0W/yEVv3Zq7MO99Dc5/lNwGsto//vFJH1pdLiAP JfwY8IOhwEVIFH7EHiedIeOxINfZfuJhYkPpbOtml1nsUFj6vGTLQ2YlsSoaFsidbJpU /Apw== 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=YJZuOyPoke9O1aNcUMwMh4SJuqZZoxbP5+ZVqt4w+RI=; b=jap6W13Bitd/GMgV9fNpHcwCjw1Q/GIMOj2PPDPFlgcL3Lxl8/GGe/kiDWko4ppAm5 4IH56xTbz0kojXTsT8j+Q+agjSm7+G5ncKTcyEFvxrm3AcVJRmUlZq5fjJBd/THNOInD tnGdlNU4um4LwWmqFdXBjWLMglCdE0k/9HOLsWUebStalXCmN3i0hDrXcDBrP2Ri/ECN S+sdLsCzZi9GFRKv65ZlXALulspvuD9AgMvdScOgc0rF1j+1q0J1cjuKDGnLjNaLaX8d 6U02Pot+Nlh/Rp8Q86ex0KUZgQlgKlZMZTVfh2poClZGj0v8V473XfW8ZqsfP8Tf7Tb7 4k4w== X-Gm-Message-State: AOAM533hRFWdZvqDbRw8FHHYbqEwVqha1R1MaDcKcE9HX6hTnldNts7j QSeJJEUW0dfxswrKi39fh0chkQ== X-Received: by 2002:a1c:b3c3:: with SMTP id c186mr4525364wmf.169.1610637819435; Thu, 14 Jan 2021 07:23:39 -0800 (PST) Received: from dell.default ([91.110.221.178]) by smtp.gmail.com with ESMTPSA id e15sm10777713wrx.86.2021.01.14.07.23.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Jan 2021 07:23:38 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Dmitry Torokhov , Henrik Rydberg , Benjamin Tissoires , linux-input@vger.kernel.org Subject: [PATCH 4/5] input: touchscreen: surface3_spi: Remove set but unused variable 'timestamp' Date: Thu, 14 Jan 2021 15:23:22 +0000 Message-Id: <20210114152323.2382283-5-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210114152323.2382283-1-lee.jones@linaro.org> References: <20210114152323.2382283-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/surface3_spi.c: In function ‘surface3_spi_process_touch’: drivers/input/touchscreen/surface3_spi.c:97:6: warning: variable ‘timestamp’ set but not used [-Wunused-but-set-variable] Cc: Dmitry Torokhov Cc: Henrik Rydberg Cc: Benjamin Tissoires Cc: linux-input@vger.kernel.org Signed-off-by: Lee Jones --- drivers/input/touchscreen/surface3_spi.c | 2 -- 1 file changed, 2 deletions(-) -- 2.25.1 Reviewed-by: Benjamin Tissoires diff --git a/drivers/input/touchscreen/surface3_spi.c b/drivers/input/touchscreen/surface3_spi.c index 731454599fcee..1da23e5585a0d 100644 --- a/drivers/input/touchscreen/surface3_spi.c +++ b/drivers/input/touchscreen/surface3_spi.c @@ -94,9 +94,7 @@ static void surface3_spi_report_touch(struct surface3_ts_data *ts_data, static void surface3_spi_process_touch(struct surface3_ts_data *ts_data, u8 *data) { - u16 timestamp; unsigned int i; - timestamp = get_unaligned_le16(&data[15]); for (i = 0; i < 13; i++) { struct surface3_ts_data_finger *finger;