From patchwork Thu Nov 12 11:01:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 324168 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp238001ils; Thu, 12 Nov 2020 03:05:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJxmqNin6xcUSFMylJXSuQwOUKvUycDSHtBKjAmC/WjtXn5ov45ddx/iarbUMXIyoThCzC1G X-Received: by 2002:a05:6402:a57:: with SMTP id bt23mr4354340edb.62.1605179125295; Thu, 12 Nov 2020 03:05:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605179125; cv=none; d=google.com; s=arc-20160816; b=NvIBTqVxti+aUBVe/BaCYjf2w107jFfSnYs6GGfk0LQacKLCiZRVDu62g0HUXDLpx2 WoHpoHgJX/hRaXyWuFCZbQkyAFa7t8P38qQzE9SsLG9sy/KXja70Gt9COHrORQhoniW0 eoaIa6WGw1mJRcBq0l0hhiwca8xFLSeHlEgTRv0uVO7PTXEONcGDVL82UIU43rz0igYi HPI/6kZdCMijMhz8kD0+TBVVQXYFnIKYMleX+1pY/u//z+/y3x9j5wir00CsF9l8jT3Q PndGWCpxujc7Mjl7zzpeTUWM0LZ1JrNm7FbHPPAMbHlkvdB7CjKfFj3kbXtOphBiJZxr bwmA== 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=4itWujiotoYQisXSQ7fjROwshRjEA26YsYFt2SDX4IY=; b=MONH+zWmjIZtAGUPgF7h9QfNIbqU5gOQvz7sPpvZ4qlTOZgDeZUxzCd+V4B5MpzlyA 7O05Hma3DPy0t0EvNwct2aeJZSBS7bXE1U+pLHphLq+TAVKMNTDgdJPWap+xrAA+qRbN 7PExDsifuPiUIASE6IwcNnORU14h1XQ1jJWrXmNTNuqrS31jaaHmzM/LwvS0rS87gZOf szRRbUXidfwAdgEGbYiqt0fSST+1cRFgAQsco95yRifLZo5vnpRrQYPXGa5l0Gub4Qm/ CxrqUxCz1n+oeZu9+gTBcUOJQt9wrmCCDOwl6a5OM309TPhDfNVZ9o2Br11E7CI7Wfvn 87iQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TQdfJpcQ; 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.25; Thu, 12 Nov 2020 03:05:25 -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=TQdfJpcQ; 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 S1727739AbgKLLFO (ORCPT + 1 other); Thu, 12 Nov 2020 06:05:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727934AbgKLLCU (ORCPT ); Thu, 12 Nov 2020 06:02:20 -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 1B99CC0613D1 for ; Thu, 12 Nov 2020 03:02:20 -0800 (PST) Received: by mail-wm1-x344.google.com with SMTP id a65so5115128wme.1 for ; Thu, 12 Nov 2020 03:02:20 -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=4itWujiotoYQisXSQ7fjROwshRjEA26YsYFt2SDX4IY=; b=TQdfJpcQKSbZ8SfiZ3c4WrInJ4vysLX2BTlR6ITcAftbm9emW2wWJZyumBo26ThtBu u0PgKCubGc/pqCWfeoq4v4Jdb2fTvLOA2gaAZsDIq56g1weE+9k7iFXv37Cu1vLVqAG8 cZHmTZUnLk39zs8xMq1gM1hOoJGZUlOGZLkFbJxtNbUw8xuJ4bKMkNVqQzVIixFdx4x8 vt8sWr2UXPzQVijeTL//XnZqu2zsbZk6uOJXKhgsPntQWPhsDJIqdlNBP791RqhpAqAO z87YHk8+XdIqWoRoaHoKIxbVjmQ0VTDCCQJrpiHjbXdtLJfOR05ThvAsjYNWHcsQUnVV kPgQ== 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=4itWujiotoYQisXSQ7fjROwshRjEA26YsYFt2SDX4IY=; b=ZJ+e/tIMgQokFF1zoLo4Z9Rydkg/MXpht/BRnkwf0DZy8PS0f1Nx0cMAZrIm9zgCeO DMs4AI+xMmgzjbn3QKi5jA18rPMXmWGfLCacyIOAeXA9J15K9HbExgNP2nCZgkVCiXJt bBWsCmMFX5D+YACQFqDJ6+luaXBkPnTRgkN3UGYFV+P+3SRMtNUYbAnckI0Vu0cxTXxh 01IE0MDgvjPPsgPlKB5oPc1tICtUGeIJTTrBgzt2M0EpscERF+GbJ/TuccOdnHAlsYob YtiQlgUVhJunqBYgXQAx5vEH7DQE9MGkmXfocYweUfexW8eRtatNgPe4xhtV5ZhpsYJ5 s4ZA== X-Gm-Message-State: AOAM530nR/S38s3aAT5j2H4FEBirK3VeX4DC9e7vsAymMoj7n2aPm++3 808/ZwOjAu78MbjCdVFgk5SG8g== X-Received: by 2002:a1c:e1c6:: with SMTP id y189mr8772221wmg.94.1605178938847; Thu, 12 Nov 2020 03:02:18 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id x81sm6515329wmg.5.2020.11.12.03.02.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Nov 2020 03:02:18 -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 08/15] input: touchscreen: surface3_spi: Remove set but unused variable 'timestamp' Date: Thu, 12 Nov 2020 11:01:57 +0000 Message-Id: <20201112110204.2083435-9-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/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 diff --git a/drivers/input/touchscreen/surface3_spi.c b/drivers/input/touchscreen/surface3_spi.c index ce4828b1415a8..72dc4c562a4e1 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;