efi: serial: Use correct EFI status type
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Mon, 11 Aug 2025 12:05:15 +0000 (13:05 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 30 Aug 2025 18:45:33 +0000 (20:45 +0200)
commitc04fb8b505658af98b7a7b9a22647a29d8fbceb0
tree05abf7e4470dd7ea153e13d5007177b37d88cd40
parente4c8b32d03d7ecffd586b7d33336603ad639d7c0
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>
drivers/serial/serial_efi.c