]> git.proxmox.com Git - mirror_edk2.git/blobdiff - FmpDevicePkg/Library/FmpDeviceLibNull/FmpDeviceLib.c
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / FmpDevicePkg / Library / FmpDeviceLibNull / FmpDeviceLib.c
index 92f202112f6946236eab4fa49f4100cde9d7579f..82219e87a430e2ad9a2fdcef6a6af37339b485ac 100644 (file)
@@ -131,6 +131,7 @@ FmpDeviceGetSize (
   if (Size == NULL) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
+\r
   *Size = 0;\r
   return EFI_SUCCESS;\r
 }\r
@@ -184,13 +185,14 @@ FmpDeviceGetImageTypeIdGuidPtr (
 EFI_STATUS\r
 EFIAPI\r
 FmpDeviceGetAttributes (\r
-  OUT UINT64    *Supported,\r
-  OUT UINT64    *Setting\r
+  OUT UINT64  *Supported,\r
+  OUT UINT64  *Setting\r
   )\r
 {\r
-  if (Supported == NULL || Setting == NULL) {\r
+  if ((Supported == NULL) || (Setting == NULL)) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
+\r
   *Supported = 0;\r
   *Setting   = 0;\r
   return EFI_SUCCESS;\r
@@ -268,6 +270,7 @@ FmpDeviceGetVersionString (
   if (VersionString == NULL) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
+\r
   *VersionString = NULL;\r
   return EFI_UNSUPPORTED;\r
 }\r
@@ -431,8 +434,7 @@ FmpDeviceCheckImage (
                                     IMAGE_UPDATABLE_VALID_WITH_VENDOR_CODE\r
   @param[out] LastAttemptStatus   A pointer to a UINT32 that holds the last attempt\r
                                   status to report back to the ESRT table in case\r
-                                  of error. This value will only be checked when this\r
-                                  function returns an error.\r
+                                  of error.\r
 \r
                                   The return status code must fall in the range of\r
                                   LAST_ATTEMPT_STATUS_DEVICE_LIBRARY_MIN_ERROR_CODE_VALUE to\r
@@ -527,15 +529,15 @@ FmpDeviceSetImage (
 {\r
   UINT32  LastAttemptStatus;\r
 \r
-  return  FmpDeviceSetImageWithStatus (\r
-            Image,\r
-            ImageSize,\r
-            VendorCode,\r
-            Progress,\r
-            CapsuleFwVersion,\r
-            AbortReason,\r
-            &LastAttemptStatus\r
-            );\r
+  return FmpDeviceSetImageWithStatus (\r
+           Image,\r
+           ImageSize,\r
+           VendorCode,\r
+           Progress,\r
+           CapsuleFwVersion,\r
+           AbortReason,\r
+           &LastAttemptStatus\r
+           );\r
 }\r
 \r
 /**\r