aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/nfc
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/nfc')
-rw-r--r--drivers/nfc/st21nfca/st21nfca_dep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/nfc/st21nfca/st21nfca_dep.c b/drivers/nfc/st21nfca/st21nfca_dep.c
index bf3132ba743c..9408122fb948 100644
--- a/drivers/nfc/st21nfca/st21nfca_dep.c
+++ b/drivers/nfc/st21nfca/st21nfca_dep.c
@@ -443,7 +443,7 @@ static void st21nfca_im_recv_atr_res_cb(void *context, struct sk_buff *skb,
443 if (err != 0) 443 if (err != 0)
444 return; 444 return;
445 445
446 if (IS_ERR(skb)) 446 if (!skb)
447 return; 447 return;
448 448
449 switch (info->async_cb_type) { 449 switch (info->async_cb_type) {
@@ -555,7 +555,7 @@ static void st21nfca_im_recv_dep_res_cb(void *context, struct sk_buff *skb,
555 if (err != 0) 555 if (err != 0)
556 return; 556 return;
557 557
558 if (IS_ERR(skb)) 558 if (!skb)
559 return; 559 return;
560 560
561 switch (info->async_cb_type) { 561 switch (info->async_cb_type) {