]> git.proxmox.com Git - mirror_edk2.git/commitdiff
OvmfPkg: make PlatformDebugLibIoPort a proper BASE library
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 16 Nov 2017 20:30:58 +0000 (21:30 +0100)
committerLaszlo Ersek <lersek@redhat.com>
Fri, 17 Nov 2017 17:34:56 +0000 (18:34 +0100)
Remove Uefi.h, which includes UefiSpec.h, and change the
return value to match the RETURN_STATUS type.

Contributed-under: TianoCore Contribution Agreement 1.1
Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Jordan Justen (Intel address) <jordan.l.justen@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Tested-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
OvmfPkg/Library/PlatformDebugLibIoPort/DebugLib.c

index 5435767c1c69a8c0bef1fdf60500a013980a49b6..74f4d9c2d6314542f501e6a135bbed14577fb099 100644 (file)
@@ -15,7 +15,6 @@
 **/\r
 \r
 #include <Base.h>\r
-#include <Uefi.h>\r
 #include <Library/DebugLib.h>\r
 #include <Library/BaseLib.h>\r
 #include <Library/IoLib.h>\r
@@ -32,7 +31,7 @@
 /**\r
   This constructor function does not have to do anything.\r
 \r
-  @retval EFI_SUCCESS   The constructor always returns RETURN_SUCCESS.\r
+  @retval RETURN_SUCCESS   The constructor always returns RETURN_SUCCESS.\r
 \r
 **/\r
 RETURN_STATUS\r
@@ -41,7 +40,7 @@ PlatformDebugLibIoPortConstructor (
   VOID\r
   )\r
 {\r
-  return EFI_SUCCESS;\r
+  return RETURN_SUCCESS;\r
 }\r
 \r
 /**\r