From 9efd35acb385d8cba179ac833430596f1674a2dc Mon Sep 17 00:00:00 2001 From: Linmao Li Date: Mon, 6 Jul 2026 15:57:42 +0800 Subject: [PATCH] nfc: trf7970a: Use NULL when no response is expected 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 Link: https://patch.msgid.link/20260706075743.564658-1-lilinmao@kylinos.cn Signed-off-by: David Heidelberg --- 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 f22e091019de..eba00a8cb5c0 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; }