mailbox: arm_mhuv3: Remove no_free_ptr() to maintain the original form of the pointer

Remove no_free_ptr() to ensure PTR_ERR() consistently retrieves the correct
error code.

Signed-off-by: Liao Yuanhong <liaoyuanhong@vivo.com>
Acked-by: Cristian Marussi <cristian.marussi@arm.com>
Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
This commit is contained in:
Liao Yuanhong 2025-08-11 16:25:36 +08:00 committed by Jassi Brar
parent 07e27ad163
commit d303528296
1 changed files with 1 additions and 1 deletions

View File

@ -945,7 +945,7 @@ static irqreturn_t mhuv3_mbx_comb_interrupt(int irq, void *arg)
if (IS_ERR(data)) {
dev_err(dev,
"Failed to read in-band data. err:%ld\n",
PTR_ERR(no_free_ptr(data)));
PTR_ERR(data));
goto rx_ack;
}
}