From 23309fbd0c8e124f2edeef167756a5150471868b Mon Sep 17 00:00:00 2001 From: Haiyue Wang Date: Mon, 5 Jan 2026 16:16:06 +0800 Subject: [PATCH] sbrmi: correct the mailbox errno sign Normally, the error code is '-' sign, to do check by "ret < 0". Signed-off-by: Haiyue Wang --- sbrmi-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbrmi-common.c b/sbrmi-common.c index f3a1db7..93851dd 100644 --- a/sbrmi-common.c +++ b/sbrmi-common.c @@ -530,7 +530,7 @@ int rmi_mailbox_xfer(struct apml_sbrmi_device *rmi_dev, u8 byte = 0; if (!rmi_dev->regmap) - return ENODEV; + return -ENODEV; msg->fw_ret_code = 0;