Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3173595imm; Fri, 20 Jul 2018 11:25:39 -0700 (PDT) X-Google-Smtp-Source: AAOMgpef5z5amDbQvEr8BgrcaEiWebQGSwNlz7YtSv/DHOxhVOIR97zzOkCvleKiMojy1FSdzKPB X-Received: by 2002:aa7:800f:: with SMTP id j15-v6mr3244287pfi.174.1532111139102; Fri, 20 Jul 2018 11:25:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532111139; cv=none; d=google.com; s=arc-20160816; b=zEaBuvVk86Zp3tjrtVI48a/wT7ggAnI5QwCKlQq+5R7QP2tKZUqZsHmG8N6ifCrxmR c0UFmWjebAlg3cAB8+XfCT4p2Z+UQfTHJA2E6pt4iGLIGF0k/1iQzmMB1e08ayXV06VU AwHEyaE5aqWL8+LWboJrqxT0JtJgzVDDObAxNC9l9URV96et0xfKIW73SnYhBOFAJ29P TWP7QRYtEjZTpUifpIY8h+HprL35kAfajGmiCaHbbW08XW4Qi/kbgbV8KYnS94ltI6iM HBHtDXo7d9uIDn71avAeuuYZ13lq0NmtKVB9KMeEunwlgv2+x4/JUQiKHKhaRgMF50Y7 Srvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:arc-authentication-results; bh=sNbdfF4kGcQFT4hr2qzHsVbYWC51+jueABqhA6Tstr0=; b=J/wQZ5Epd2joqwEE2OERkOo/osIdMvoxitMBsOzu4HjW08Hf5JlX3gS0GUJUEBFHO9 hvtIA8jG65AcHtrCAWWM0FttBGh6D7Z49vH8gI0FHk547N//mi1ZRF32/nxQvWdcfDYH Ol8D5vkxG2TNr6VKgZepPY/K9Ki96pl9LKEihrJfmqyhBZ1cTdxvJ7FOaTT/Rvqy8Xc2 q4SAJU5rikn1/4olUw58KxKRqmUYOQlftD5K8+Rc0AsrE9G1ik5x+4DzFTqZlbnyRmjv XBmbb07fvLkWvxLsD7EZFCZNxwHg86ptbLtQX13OPKlres7AkKqotQ0xDTKyv0C9dSbl H0FA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v9-v6si2414892pfg.123.2018.07.20.11.25.13; Fri, 20 Jul 2018 11:25:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388203AbeGTTOB (ORCPT + 99 others); Fri, 20 Jul 2018 15:14:01 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:34959 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388109AbeGTTOB (ORCPT ); Fri, 20 Jul 2018 15:14:01 -0400 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1fga4t-0008TN-SO; Fri, 20 Jul 2018 18:24:31 +0000 From: Colin King To: Samuel Ortiz , Daniel Mack , linux-wireless@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] nfc: st95hf: remove redundant pointers 'dev' and 'nfcddev' Date: Fri, 20 Jul 2018 19:24:31 +0100 Message-Id: <20180720182431.24353-1-colin.king@canonical.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Colin Ian King Pointers 'dev' and 'nfcddev' are being assigned but are never used hence they are redundant and can be removed. Cleans up clang warnings: warning: variable 'dev' set but not used [-Wunused-but-set-variable] warning: variable 'nfcddev' set but not used [-Wunused-but-set-variable] Signed-off-by: Colin Ian King --- drivers/nfc/st95hf/core.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/nfc/st95hf/core.c b/drivers/nfc/st95hf/core.c index a50a95cfcfd8..36ef0e905ba3 100644 --- a/drivers/nfc/st95hf/core.c +++ b/drivers/nfc/st95hf/core.c @@ -781,9 +781,7 @@ static irqreturn_t st95hf_irq_thread_handler(int irq, void *st95hfcontext) int result = 0; int res_len; static bool wtx; - struct device *dev; struct device *spidevice; - struct nfc_digital_dev *nfcddev; struct sk_buff *skb_resp; struct st95hf_context *stcontext = (struct st95hf_context *)st95hfcontext; @@ -828,8 +826,6 @@ static irqreturn_t st95hf_irq_thread_handler(int irq, void *st95hfcontext) goto end; } - dev = &stcontext->nfcdev->dev; - nfcddev = stcontext->ddev; if (skb_resp->data[2] == WTX_REQ_FROM_TAG) { /* Request for new FWT from tag */ result = st95hf_handle_wtx(stcontext, true, skb_resp->data[3]); -- 2.17.1