Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp259444pxb; Thu, 12 Nov 2020 03:10:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJyKGbHpN6q449TIZXidgRWOE6sr2dOJ8pY4hx9BnY9ZJ91HxzkJq8n+nNgycRDZPxbMCqzt X-Received: by 2002:a17:906:82d7:: with SMTP id a23mr28950061ejy.505.1605179438532; Thu, 12 Nov 2020 03:10:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605179438; cv=none; d=google.com; s=arc-20160816; b=a9mswKxM+fo0XJPDOXSoqiMb9H2WNCZSmL0fAJ+0ATcfzVyijL+/N4FjdfX/AVaIXs 4Z0dH6f4FvpjlXjSfievfV0T3gTpQn2TJTp6VfyfQJoV5+3pnlecebiRkgldCERiA65z GvvQ2Lo2ethY42/7ACQgZfmXF12+xXqS1C7JbhX6NOHvBRa++3IcWslOCUg7yTSpUxOX 0rojc628BzrqC4XYIWghssllVauhn15R7RbDWwvatc8N1GmhOmYmUWVoPxzpMpPvVXoi PESBjTRE+FVa4FceNcmSgd52u0hTpkBIMi0cGVt3QOvfca9+nS4T71AHX17KgknkF++2 k4Og== 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=nMKE4IlOr6evhy/Ie8gXbBmQpqdbJ7dvrI7Z+uES9YU=; b=DmjRO+K5TKlnLgDg/h+SHBwC717u70/fX92CtYtG5B/1rVTEJi2jiihRDULudQ7fsO snUruZO2Zu0UZElyVqX9N+uFcvYtCUGclwc3gWbmCjx+gfptlLhVp3LLKrM8yZQlUwse vbgJ+k4dgVVP2y2Vq1gU2s07WMOPIiAQ4PcnwvD3PgMazoVjSZ0RDRckwpw3WJK/OBK5 V0vfd7w5nIyJBrrsvqkqIMzYVxBAbvcz4kwvZGH9JcE/c5J6dUdTaPQTOQKtWzPtMVBD LHme4j7jYfXDZ2vhEdNYKCjHMXTqpWoKtKF6pa5fMoh2RC1ZSSJ8xVPRVtph/UYwLS9j Ei4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oVniKyKU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 d4si3277994ejd.492.2020.11.12.03.10.15; Thu, 12 Nov 2020 03:10:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=oVniKyKU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S1728000AbgKLLGg (ORCPT + 99 others); Thu, 12 Nov 2020 06:06:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727993AbgKLLCM (ORCPT ); Thu, 12 Nov 2020 06:02:12 -0500 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAD12C0617A7 for ; Thu, 12 Nov 2020 03:02:11 -0800 (PST) Received: by mail-wr1-x444.google.com with SMTP id s8so5503194wrw.10 for ; Thu, 12 Nov 2020 03:02:11 -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=nMKE4IlOr6evhy/Ie8gXbBmQpqdbJ7dvrI7Z+uES9YU=; b=oVniKyKUgho7jnPFtk0I6A3ULuPQSFCnRTuKY4hKAiDWM7bzWwqQlEqO39PpFQArz7 7Kqy9ACSUzCdM08TmqUwgI5w+JT0w7sgLA8EGVf1Tmqgg03brLsa6UKebtFQTTzOu6+V X0ViJv6AQyvIim12RFf3D25MXR3vfJseB3sqLXF+fdKRmzMtR6VUkq+dkIRonoT25SLI MYhBAUJkOfqdrw0KEeY4997CdiVGlLVoSn+6d/AOSU9Krlhm6c4eqxJtgjFepJz3Y64A iIU9Asz2/ElC2Un237l1Z9IlsQxOKXdiSi1DXskNYPJ8XSNt++pTPN5TYw1XqeklloiP 6DpA== 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=nMKE4IlOr6evhy/Ie8gXbBmQpqdbJ7dvrI7Z+uES9YU=; b=o3qoRHzjFBZ3Nl/QyLyNnaJ4q7h0qtVFLT2LBVLU2lRYoSYwNqr66pKG8iIRBND11Y tT9NW98RGzVspp8QuqP9BzKmYGYrDSsXEQEhLbikChIaXqpESWQ32LJZhWXrkc50b++T NGQq1CV6wC+8xZewUsZmiFEHmS4lzeXwUDm+ZLEDull7BQRHflC0c0eikd3bMfOWWlR8 1Sbnr6H6Ceqgc83S3YtL0Wuybn/D6xgH1NQcGdQgryBwcZgV0CwYxSQM+ME4YzUap/Sd gwMifEQmPlSrVkflyMHeGZe6lcCI4ErtixOzKXxK7UHg4aRjgYm6mpNXW0LIb2T7CM56 7qUA== X-Gm-Message-State: AOAM532Nbc9u+SbLtpBsCHDW4OCCzzlja7SMMhU1DjGwDEMGRCSvVw4V zXOWWPPpDGODOZHz1JB+3TVWGQ== X-Received: by 2002:a05:6000:364:: with SMTP id f4mr7221199wrf.290.1605178930645; Thu, 12 Nov 2020 03:02:10 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id x81sm6515329wmg.5.2020.11.12.03.02.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Nov 2020 03:02:10 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Dmitry Torokhov , Joonyoung Shim , Donghwa Lee , linux-input@vger.kernel.org Subject: [PATCH 02/15] input: keyboard: samsung-keypad: Remove set but unused variable 'var' Date: Thu, 12 Nov 2020 11:01:51 +0000 Message-Id: <20201112110204.2083435-3-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 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/input/keyboard/samsung-keypad.c: In function ‘samsung_keypad_irq’: drivers/input/keyboard/samsung-keypad.c:149:15: warning: variable ‘val’ set but not used [-Wunused-but-set-variable] Cc: Dmitry Torokhov Cc: Joonyoung Shim Cc: Donghwa Lee Cc: linux-input@vger.kernel.org Signed-off-by: Lee Jones --- drivers/input/keyboard/samsung-keypad.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/input/keyboard/samsung-keypad.c b/drivers/input/keyboard/samsung-keypad.c index 70c1d086bdd2a..1ed939d9798cf 100644 --- a/drivers/input/keyboard/samsung-keypad.c +++ b/drivers/input/keyboard/samsung-keypad.c @@ -146,13 +146,12 @@ static irqreturn_t samsung_keypad_irq(int irq, void *dev_id) { struct samsung_keypad *keypad = dev_id; unsigned int row_state[SAMSUNG_MAX_COLS]; - unsigned int val; bool key_down; pm_runtime_get_sync(&keypad->pdev->dev); do { - val = readl(keypad->base + SAMSUNG_KEYIFSTSCLR); + readl(keypad->base + SAMSUNG_KEYIFSTSCLR); /* Clear interrupt. */ writel(~0x0, keypad->base + SAMSUNG_KEYIFSTSCLR); -- 2.25.1