Skip to content

Commit 16848c8

Browse files
YueHaibingdavem330
authored andcommitted
NFC: st95hf: remove set but not used variables 'dev, nfcddev'
Fixes gcc '-Wunused-but-set-variable' warning: drivers/nfc/st95hf/core.c: In function 'st95hf_irq_thread_handler': drivers/nfc/st95hf/core.c:786:26: warning: variable 'nfcddev' set but not used [-Wunused-but-set-variable] drivers/nfc/st95hf/core.c:784:17: warning: variable 'dev' set but not used [-Wunused-but-set-variable] They are never used since introduction in commit cab4733 ("NFC: Add STMicroelectronics ST95HF driver") Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 0e58156 commit 16848c8

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/nfc/st95hf/core.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -781,9 +781,7 @@ static irqreturn_t st95hf_irq_thread_handler(int irq, void *st95hfcontext)
781781
int result = 0;
782782
int res_len;
783783
static bool wtx;
784-
struct device *dev;
785784
struct device *spidevice;
786-
struct nfc_digital_dev *nfcddev;
787785
struct sk_buff *skb_resp;
788786
struct st95hf_context *stcontext =
789787
(struct st95hf_context *)st95hfcontext;
@@ -828,8 +826,6 @@ static irqreturn_t st95hf_irq_thread_handler(int irq, void *st95hfcontext)
828826
goto end;
829827
}
830828

831-
dev = &stcontext->nfcdev->dev;
832-
nfcddev = stcontext->ddev;
833829
if (skb_resp->data[2] == WTX_REQ_FROM_TAG) {
834830
/* Request for new FWT from tag */
835831
result = st95hf_handle_wtx(stcontext, true, skb_resp->data[3]);

0 commit comments

Comments
 (0)