aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-04-24 22:07:20 -0400
committerDavid S. Miller <davem@davemloft.net>2019-04-26 12:07:18 -0400
commit16848c8a728e74c1b6a0c994f34f0f5453f257a0 (patch)
tree3238b538f6104225ecd6297478e48ed935ddc059
parent0e58156d700ac45fd5f0f90698a13233b1fe4c44 (diff)
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 cab47333f0f7 ("NFC: Add STMicroelectronics ST95HF driver") Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/nfc/st95hf/core.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/nfc/st95hf/core.c b/drivers/nfc/st95hf/core.c
index 01acb6e53365..99727a2edda0 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)
781 int result = 0; 781 int result = 0;
782 int res_len; 782 int res_len;
783 static bool wtx; 783 static bool wtx;
784 struct device *dev;
785 struct device *spidevice; 784 struct device *spidevice;
786 struct nfc_digital_dev *nfcddev;
787 struct sk_buff *skb_resp; 785 struct sk_buff *skb_resp;
788 struct st95hf_context *stcontext = 786 struct st95hf_context *stcontext =
789 (struct st95hf_context *)st95hfcontext; 787 (struct st95hf_context *)st95hfcontext;
@@ -828,8 +826,6 @@ static irqreturn_t st95hf_irq_thread_handler(int irq, void *st95hfcontext)
828 goto end; 826 goto end;
829 } 827 }
830 828
831 dev = &stcontext->nfcdev->dev;
832 nfcddev = stcontext->ddev;
833 if (skb_resp->data[2] == WTX_REQ_FROM_TAG) { 829 if (skb_resp->data[2] == WTX_REQ_FROM_TAG) {
834 /* Request for new FWT from tag */ 830 /* Request for new FWT from tag */
835 result = st95hf_handle_wtx(stcontext, true, skb_resp->data[3]); 831 result = st95hf_handle_wtx(stcontext, true, skb_resp->data[3]);