From: Andrew Goodbody Date: Mon, 11 Aug 2025 12:05:15 +0000 (+0100) Subject: efi: serial: Use correct EFI status type X-Git-Tag: v2025.10-rc4~9^2~12 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c04fb8b505658af98b7a7b9a22647a29d8fbceb0;p=pandora-u-boot.git 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 Reviewed-by: Heinrich Schuchardt --- 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;