]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkCompatibilityPkg/Compatibility/PiSmbiosRecordOnDataHubSmbiosRecordThunk/MiscConv.c
Fix non-boolean comparison expression.
[mirror_edk2.git] / EdkCompatibilityPkg / Compatibility / PiSmbiosRecordOnDataHubSmbiosRecordThunk / MiscConv.c
index 3ffbbe5195ac12b241d5e882593fa7399142c1aa..1dca381ace28fc5ac33366dc2fe8ade23c613b51 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Routines that support Misc SubClass data records translation.\r
   \r
-Copyright (c) 2009, Intel Corporation\r
+Copyright (c) 2009 - 2010, Intel Corporation\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -480,7 +480,7 @@ SmbiosFldMiscType3 (
             OFFSET_OF (SMBIOS_TABLE_TYPE3, ContainedElementCount)) \r
             = (UINT8)Ec->ChassisElementCount;\r
 \r
-  if( Ec->ChassisElementCount ) {\r
+  if(Ec->ChassisElementCount > 0) {\r
     //\r
     // Element Record Length\r
     // Current solution covers first 3 bytes; user can extend to meet its requirements.\r