[PATCH] nfc: trf7970a: Use NULL when no response is expected

From: Linmao Li

Date: Mon Jul 06 2026 - 04:41:14 EST


When a command's timeout is zero, no response is expected, and the TX
interrupt handler completes the command by passing ERR_PTR(0) to the
digital callback.

ERR_PTR(0) evaluates to NULL, so no errno is encoded here. Use NULL
directly to avoid suggesting that this is an error-pointer path.

Signed-off-by: Linmao Li <lilinmao@xxxxxxxxxx>
---
drivers/nfc/trf7970a.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/nfc/trf7970a.c b/drivers/nfc/trf7970a.c
index 08c27bb438b5..7addf243c6f1 100644
--- a/drivers/nfc/trf7970a.c
+++ b/drivers/nfc/trf7970a.c
@@ -938,7 +938,7 @@ static irqreturn_t trf7970a_irq(int irq, void *dev_id)
if (!trf->timeout) {
trf->ignore_timeout =
!cancel_delayed_work(&trf->timeout_work);
- trf->rx_skb = ERR_PTR(0);
+ trf->rx_skb = NULL;
trf7970a_send_upstream(trf);
break;
}
--
2.25.1