mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 12:44:03 +02:00
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:
parent
347c1481c1
commit
9efd35acb3
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user