Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3773934imm; Sat, 21 Jul 2018 02:56:26 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe6DpE2UZXaAdOlUWiP5+/h1ZB55WGFBv8CSyECUPUjuQxpDLQT2iXr4nmMXSaL5D45TRo5 X-Received: by 2002:a63:db05:: with SMTP id e5-v6mr5096758pgg.152.1532166986802; Sat, 21 Jul 2018 02:56:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532166986; cv=none; d=google.com; s=arc-20160816; b=N7z2mc1l+qSTH+AWDEEe/MYqzZ7hSPsmx32ik7JgWej2el4exzSIpvNU0QMxn4iyt4 yXD623lH+nrDyFxy5LjgWBG8h50bJWyHm9ekUwthvFA/5d+USrX98tSojaxsdKZ3EGBJ VaOw6yN5sg8ThmoL16C+zmUfQlFjbA/fTL9QbtXISJRfe2XtN3iCYi/KdFD0TjhkIHVC +9bBiq8mDJg6pISSdAN2JXlj8Ms7EEDntlesA4pHiEk7g/Uwv3x8iqtpOffbBVOeMSTf wq+tB61ObhfFbhwiF7zBm+rbVlDLCBgHUctjiq4SedWb7G828pb5FGTiOXrcP0PDD/5q LQLA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=P/Oodi2v5R5paUCwywhYc8uXTsBuzuqLiEX6Y2dYCus=; b=0JfXGo66sWoHJZ+3rXmkF6rjdqH4Wt3V80I8vaRnwS0suuv5racvyHIu7IKeYmCLRN nNVHx3Ap3zqSxUBiJqjmHF2PerRY0CBn+cy5gRhsWRuLRuRgTIHtqpksz0/aC2lc2FB8 n/cYo1L160De5bqGpOYDruhLX+/oI5mf0PY6mvhjnmJ3/wTFdhcXFScBOal69qo75oJU 1vIBvBQDdy/7QS6/1zaG6CT5k+2E9QO7Rk59v6o/xyBRtvKu9OIhssdflcOAEIK3dpQJ TI4/D3/aTgXv03lfeWY3ICA3fF7Y/ogTLsk5+u6bkAfpGEfFQPIQXPOo4rZMgShEBrvM 9hhQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i61-v6si3581870plb.138.2018.07.21.02.55.58; Sat, 21 Jul 2018 02:56:26 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727554AbeGUKqq (ORCPT + 99 others); Sat, 21 Jul 2018 06:46:46 -0400 Received: from mail.bugwerft.de ([46.23.86.59]:37782 "EHLO mail.bugwerft.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727412AbeGUKqq (ORCPT ); Sat, 21 Jul 2018 06:46:46 -0400 Received: from [192.168.178.170] (p57BC95AD.dip0.t-ipconnect.de [87.188.149.173]) by mail.bugwerft.de (Postfix) with ESMTPSA id 66271291131; Sat, 21 Jul 2018 09:54:16 +0000 (UTC) Subject: Re: [PATCH] nfc: st95hf: remove redundant pointers 'dev' and 'nfcddev' To: Colin King , Samuel Ortiz , linux-wireless@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180720182431.24353-1-colin.king@canonical.com> From: Daniel Mack Message-ID: <8599f87b-8d71-37bc-cfbf-278a3359cf0b@zonque.org> Date: Sat, 21 Jul 2018 11:54:35 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180720182431.24353-1-colin.king@canonical.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Friday, July 20, 2018 08:24 PM, Colin King wrote: > 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 This seems correct. I am currently working on a bigger series of patches for this driver that also touches code in the same area. I plan to post the series next week. If this patch is applied until then, I can rebase my changes upon it before sending. Thanks, Daniel > --- > 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]); >