diff options
author | Andrew Goodbody <andrew.goodbody@linaro.org> | 2025-08-11 13:05:15 +0100 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2025-08-30 20:45:33 +0200 |
commit | c04fb8b505658af98b7a7b9a22647a29d8fbceb0 (patch) | |
tree | 05abf7e4470dd7ea153e13d5007177b37d88cd40 | |
parent | e4c8b32d03d7ecffd586b7d33336603ad639d7c0 (diff) |
efi: serial: Use correct EFI status type
int is not sufficient to hold and test the return from an EFI function
call. Use efi_status_t instead so that the test can work as expected.
This issue was found by Smatch.
Fixes: 275854baeeec ("efi: Add a serial driver")
Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
-rw-r--r-- | drivers/serial/serial_efi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/serial/serial_efi.c b/drivers/serial/serial_efi.c index 5733eaaf9d4..d3cd4de34a2 100644 --- a/drivers/serial/serial_efi.c +++ b/drivers/serial/serial_efi.c @@ -33,7 +33,7 @@ int serial_efi_setbrg(struct udevice *dev, int baudrate) static int serial_efi_get_key(struct serial_efi_priv *priv) { - int ret; + efi_status_t ret; if (priv->have_key) return 0; |