diff options
author | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-03-03 05:40:19 +0000 |
---|---|---|
committer | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-03-03 05:40:19 +0000 |
commit | de558d9dfeca14d561a416d139ff521d87e83e47 (patch) | |
tree | 74a220274849035f97ee016532417d6f08a29171 /EdkCompatibilityPkg/Compatibility/PiSmbiosRecordOnDataHubSmbiosRecordThunk/MiscConv.c | |
parent | 667ffa38d1cc047dee0fcda4572f10dcf57f9c31 (diff) | |
download | edk2-platforms-de558d9dfeca14d561a416d139ff521d87e83e47.tar.xz |
Fix non-boolean comparison expression.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10165 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkCompatibilityPkg/Compatibility/PiSmbiosRecordOnDataHubSmbiosRecordThunk/MiscConv.c')
-rw-r--r-- | EdkCompatibilityPkg/Compatibility/PiSmbiosRecordOnDataHubSmbiosRecordThunk/MiscConv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/EdkCompatibilityPkg/Compatibility/PiSmbiosRecordOnDataHubSmbiosRecordThunk/MiscConv.c b/EdkCompatibilityPkg/Compatibility/PiSmbiosRecordOnDataHubSmbiosRecordThunk/MiscConv.c index 3ffbbe5195..1dca381ace 100644 --- a/EdkCompatibilityPkg/Compatibility/PiSmbiosRecordOnDataHubSmbiosRecordThunk/MiscConv.c +++ b/EdkCompatibilityPkg/Compatibility/PiSmbiosRecordOnDataHubSmbiosRecordThunk/MiscConv.c @@ -1,7 +1,7 @@ /** @file
Routines that support Misc SubClass data records translation.
-Copyright (c) 2009, Intel Corporation
+Copyright (c) 2009 - 2010, Intel Corporation
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -480,7 +480,7 @@ SmbiosFldMiscType3 ( OFFSET_OF (SMBIOS_TABLE_TYPE3, ContainedElementCount))
= (UINT8)Ec->ChassisElementCount;
- if( Ec->ChassisElementCount ) {
+ if(Ec->ChassisElementCount > 0) {
//
// Element Record Length
// Current solution covers first 3 bytes; user can extend to meet its requirements.
|