mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
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:
1 parent
07e27ad163
commit
d303528296
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user