]> git.proxmox.com Git - mirror_edk2.git/commitdiff
[BaseTools] clang warns that since BaseAddress is unsigned it can never be < 0.
authorAnderw Fish <afish@apple.com>
Thu, 28 Aug 2014 05:02:35 +0000 (05:02 +0000)
committerandrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 28 Aug 2014 05:02:35 +0000 (05:02 +0000)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Anderw Fish <afish@apple.com>
Reviewed-by: Gao, Liming <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15931 6f19259b-4bc3-4df7-8a09-765794883524

BaseTools/Source/C/GenVtf/GenVtf.c

index 60df34906eb804cab97ff26cddf6289787a92371..256a2b16a923ecf5ccca03fd30c89ca53ace0daf 100644 (file)
@@ -1722,7 +1722,7 @@ Returns:
 \r
 --*/\r
 {\r
-  if ((BaseAddress >= 0) && (FwVolSize > 0x40) && ((BaseAddress + FwVolSize) % 8 == 0)) {\r
+  if ((FwVolSize > 0x40) && ((BaseAddress + FwVolSize) % 8 == 0)) {\r
     return EFI_SUCCESS;\r
   }\r
 \r