diff mbox

[edk2,6/6] Vlv2TbltDevicePkg: fix ASSERT_EFI_ERROR() typos

Message ID 1467120338-12587-7-git-send-email-lersek@redhat.com
State Accepted
Commit 2bfd84ed45b2b66bdabac059df9db3404912dd28
Headers show

Commit Message

Laszlo Ersek June 28, 2016, 1:25 p.m. UTC
A number of code locations use

  ASSERT_EFI_ERROR (BooleanExpression)

instead of

  ASSERT (BooleanExpression)

Fix them.

Cc: David Wei <david.wei@intel.com>
Cc: Tim He <tim.he@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>

---

Notes:
    not even build tested

 Vlv2TbltDevicePkg/FvbRuntimeDxe/FvbService.c                           | 6 +++---
 Vlv2TbltDevicePkg/Library/MultiPlatformLib/BoardClkGens/BoardClkGens.c | 8 ++++----
 Vlv2TbltDevicePkg/Library/MultiPlatformLib/PlatformInfoHob.c           | 2 +-
 3 files changed, 8 insertions(+), 8 deletions(-)

-- 
1.8.3.1

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Comments

Ard Biesheuvel July 1, 2016, 11:36 a.m. UTC | #1
On 29 June 2016 at 09:49, Wei, David <david.wei@intel.com> wrote:
> Reviewed-by: David Wei <david.wei@intel.com>

>

> Thanks,

> David  Wei

>


Hi David,

It seems like Laszlo and you both pushed this patch, and you merged it
rather than rebasing first.

This means we now have two copies of the same patch, which needlessly
obfuscates the GIT history.
Question to the crowd: what is the latest policy regarding merges vs
linear history? It was discussed at great length but IIRC the standing
policy is still 'no merges' ?

Regards,
Ard.
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
Laszlo Ersek July 1, 2016, 12:26 p.m. UTC | #2
On 07/01/16 13:36, Ard Biesheuvel wrote:
> On 29 June 2016 at 09:49, Wei, David <david.wei@intel.com> wrote:

>> Reviewed-by: David Wei <david.wei@intel.com>

>>

>> Thanks,

>> David  Wei

>>

> 

> Hi David,

> 

> It seems like Laszlo and you both pushed this patch, and you merged it

> rather than rebasing first.

> 

> This means we now have two copies of the same patch, which needlessly

> obfuscates the GIT history.

> Question to the crowd: what is the latest policy regarding merges vs

> linear history? It was discussed at great length but IIRC the standing

> policy is still 'no merges' ?


The rule I've been tacitly following is: rebase unless a contributor
specifically requests a PULL. (On the list, not on github.)

Thanks
Laszlo
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
diff mbox

Patch

diff --git a/Vlv2TbltDevicePkg/FvbRuntimeDxe/FvbService.c b/Vlv2TbltDevicePkg/FvbRuntimeDxe/FvbService.c
index da7dce6e13c7..7c95c107e600 100644
--- a/Vlv2TbltDevicePkg/FvbRuntimeDxe/FvbService.c
+++ b/Vlv2TbltDevicePkg/FvbRuntimeDxe/FvbService.c
@@ -154,7 +154,7 @@  FvbGetVolumeAttributes (
 {
   EFI_FW_VOL_INSTANCE *    FwInstance = NULL;
   FwInstance = GetFvbInstance(Instance);
-  ASSERT_EFI_ERROR (FwInstance != NULL);
+  ASSERT (FwInstance != NULL);
 
   if ( FwInstance != NULL ) {
     return FwInstance->VolumeHeader.Attributes;
@@ -208,7 +208,7 @@  FvbGetLbaAddress (
   StartLba  = 0;
   Offset    = 0;
   BlockMap  = &(FwhInstance->VolumeHeader.BlockMap[0]);
-  ASSERT_EFI_ERROR (BlockMap != NULL);
+  ASSERT (BlockMap != NULL);
 
   //
   // Parse the blockmap of the FV to find which map entry the Lba belongs to.
@@ -512,7 +512,7 @@  FvbSetVolumeAttributes (
   FwhInstance = GetFvbInstance (Instance);
 
   AttribPtr     = (EFI_FVB_ATTRIBUTES_2 *) & (FwhInstance->VolumeHeader.Attributes);
-  ASSERT_EFI_ERROR (AttribPtr != NULL);
+  ASSERT (AttribPtr != NULL);
 
   if ( AttribPtr != NULL) {
     OldAttributes = *AttribPtr;
diff --git a/Vlv2TbltDevicePkg/Library/MultiPlatformLib/BoardClkGens/BoardClkGens.c b/Vlv2TbltDevicePkg/Library/MultiPlatformLib/BoardClkGens/BoardClkGens.c
index e38633b2b3ae..7d740df2fef9 100644
--- a/Vlv2TbltDevicePkg/Library/MultiPlatformLib/BoardClkGens/BoardClkGens.c
+++ b/Vlv2TbltDevicePkg/Library/MultiPlatformLib/BoardClkGens/BoardClkGens.c
@@ -69,10 +69,10 @@  ConfigureClockGenerator (
   //
   // Verify input arguments
   //
-  ASSERT_EFI_ERROR (ConfigurationTableLength >= 6);
-  ASSERT_EFI_ERROR (ConfigurationTableLength <= MAX_CLOCK_GENERATOR_BUFFER_LENGTH);
-  ASSERT_EFI_ERROR (ClockType < ClockGeneratorMax);
-  ASSERT_EFI_ERROR (ConfigurationTable != NULL);
+  ASSERT (ConfigurationTableLength >= 6);
+  ASSERT (ConfigurationTableLength <= MAX_CLOCK_GENERATOR_BUFFER_LENGTH);
+  ASSERT (ClockType < ClockGeneratorMax);
+  ASSERT (ConfigurationTable != NULL);
 
   //
   // Read the clock generator
diff --git a/Vlv2TbltDevicePkg/Library/MultiPlatformLib/PlatformInfoHob.c b/Vlv2TbltDevicePkg/Library/MultiPlatformLib/PlatformInfoHob.c
index ebaaf40a165e..9d77e86678fe 100644
--- a/Vlv2TbltDevicePkg/Library/MultiPlatformLib/PlatformInfoHob.c
+++ b/Vlv2TbltDevicePkg/Library/MultiPlatformLib/PlatformInfoHob.c
@@ -49,7 +49,7 @@  GetPlatformInfoHob (
   //
   // PlatformInfo PEIM should provide this HOB data, if not ASSERT and return error.
   //
-  ASSERT_EFI_ERROR (*PlatformInfoHob != NULL);
+  ASSERT (*PlatformInfoHob != NULL);
   if (!(*PlatformInfoHob)) {
     return EFI_NOT_FOUND;
   }