X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=OvmfPkg%2FLibrary%2FPlatformDebugLibIoPort%2FDebugLibDetect.c;fp=OvmfPkg%2FLibrary%2FPlatformDebugLibIoPort%2FDebugLibDetect.c;h=45207faf5cb2fd8af5547aa94b793df18cbe9651;hb=ac0a286f4d747a4c6c603a7b225917293cbe1e9f;hp=8c466e64e0a6e10112d296429a2e7ac2d3565049;hpb=d1050b9dff1cace252aff86630bfdb59dff5f507;p=mirror_edk2.git diff --git a/OvmfPkg/Library/PlatformDebugLibIoPort/DebugLibDetect.c b/OvmfPkg/Library/PlatformDebugLibIoPort/DebugLibDetect.c index 8c466e64e0..45207faf5c 100644 --- a/OvmfPkg/Library/PlatformDebugLibIoPort/DebugLibDetect.c +++ b/OvmfPkg/Library/PlatformDebugLibIoPort/DebugLibDetect.c @@ -13,12 +13,12 @@ // // Set to TRUE if the debug I/O port has been checked // -STATIC BOOLEAN mDebugIoPortChecked = FALSE; +STATIC BOOLEAN mDebugIoPortChecked = FALSE; // // Set to TRUE if the debug I/O port is enabled // -STATIC BOOLEAN mDebugIoPortFound = FALSE; +STATIC BOOLEAN mDebugIoPortFound = FALSE; /** This constructor function must not do anything. @@ -58,8 +58,9 @@ PlatformDebugLibIoPortFound ( ) { if (!mDebugIoPortChecked) { - mDebugIoPortFound = PlatformDebugLibIoPortDetect (); + mDebugIoPortFound = PlatformDebugLibIoPortDetect (); mDebugIoPortChecked = TRUE; } + return mDebugIoPortFound; }