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: 11899707 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7B13D139F for ; Thu, 12 Nov 2020 11:05:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 52E152222A for ; Thu, 12 Nov 2020 11:05:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="TQdfJpcQ" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727739AbgKLLFO (ORCPT ); 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-Google-Smtp-Source: ABdhPJxbX43EeFV7frl73sbQcSTXcq5whw8kL0kNaJb6Dysa8x99FtnS8yGivRJfQt3K9q+WsEVTcg== 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(-) 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;