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 <lilinmao@kylinos.cn>
Link: https://patch.msgid.link/20260706075743.564658-1-lilinmao@kylinos.cn
Signed-off-by: David Heidelberg <david@ixit.cz>
This commit is contained in:
Linmao Li 2026-07-06 15:57:42 +08:00 committed by David Heidelberg
parent 347c1481c1
commit 9efd35acb3
No known key found for this signature in database
GPG Key ID: 60023FC4D3492072

View File

@ -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;
}