From 07355bd5ccf46cabb0ad05f1a058c1cfcbad1081 Mon Sep 17 00:00:00 2001 From: Anderw Fish Date: Thu, 28 Aug 2014 05:02:35 +0000 Subject: [PATCH] [BaseTools] clang warns that since BaseAddress is unsigned it can never be < 0. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anderw Fish Reviewed-by: Gao, Liming 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BaseTools/Source/C/GenVtf/GenVtf.c b/BaseTools/Source/C/GenVtf/GenVtf.c index 60df34906e..256a2b16a9 100644 --- a/BaseTools/Source/C/GenVtf/GenVtf.c +++ b/BaseTools/Source/C/GenVtf/GenVtf.c @@ -1722,7 +1722,7 @@ Returns: --*/ { - if ((BaseAddress >= 0) && (FwVolSize > 0x40) && ((BaseAddress + FwVolSize) % 8 == 0)) { + if ((FwVolSize > 0x40) && ((BaseAddress + FwVolSize) % 8 == 0)) { return EFI_SUCCESS; } -- 2.39.2