]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/IoMmuDxe/IoMmuDxe.c
OvmfPkg/Protocol/VirtioDevice: fix comment style
[mirror_edk2.git] / OvmfPkg / IoMmuDxe / IoMmuDxe.c
index 27b1856e0a17e3a82308cb4ea8c1c13072d00031..70d30ea916278907d6d0947b2f3dfdbf0310f7b3 100644 (file)
 \r
 **/\r
 \r
-#include <PiDxe.h>\r
-\r
-#include <Library/BaseLib.h>\r
-#include <Library/DebugLib.h>\r
-#include <Library/BaseMemoryLib.h>\r
-#include <Library/MemoryAllocationLib.h>\r
-#include <Library/UefiBootServicesTableLib.h>\r
-#include <Library/MemEncryptSevLib.h>\r
-\r
 #include "AmdSevIoMmu.h"\r
 \r
 EFI_STATUS\r
@@ -36,14 +27,12 @@ IoMmuDxeEntryPoint (
   EFI_STATUS    Status;\r
   EFI_HANDLE    Handle;\r
 \r
-  Status = EFI_SUCCESS;\r
-\r
   //\r
   // When SEV is enabled, install IoMmu protocol otherwise install the\r
   // placeholder protocol so that other dependent module can run.\r
   //\r
   if (MemEncryptSevIsEnabled ()) {\r
-    AmdSevInstallIoMmuProtocol ();\r
+    Status = AmdSevInstallIoMmuProtocol ();\r
   } else {\r
     Handle = NULL;\r
 \r