From 7e039c47ae4e18622d38bf7fb31c5a9882a24d64 Mon Sep 17 00:00:00 2001 From: Aiken Harris Date: Thu, 4 Sep 2025 10:56:17 +0200 Subject: [PATCH] Simplify BlpDebugPutChar return path --- xtldr/debug.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/xtldr/debug.c b/xtldr/debug.c index 11450166..f2334d6d 100644 --- a/xtldr/debug.c +++ b/xtldr/debug.c @@ -78,10 +78,7 @@ BlpDebugPutChar(IN WCHAR Character) /* Write character to the serial console */ Buffer[0] = Character; Buffer[1] = 0; - HlComPortPutByte(&BlpStatus.SerialPort, Buffer[0]); - - /* Return success */ - return STATUS_EFI_SUCCESS; + return HlComPortPutByte(&BlpStatus.SerialPort, Buffer[0]); } /**