From 88e47d1959bfaf9417cfd4865ef3c6a926c1978b Mon Sep 17 00:00:00 2001 From: "wenyi,xie via groups.io" Date: Tue, 15 Dec 2020 14:43:30 +0800 Subject: BaseTools/EfiRom: remove redundant checking of argc As the condition of while statement is argc > 0, so argc < 1 will always be false, it's redundant. Cc: Bob Feng Cc: Liming Gao Cc: Yuwei Chen Signed-off-by: Wenyi Xie Reviewed-by: Bob Feng --- BaseTools/Source/C/EfiRom/EfiRom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'BaseTools') diff --git a/BaseTools/Source/C/EfiRom/EfiRom.c b/BaseTools/Source/C/EfiRom/EfiRom.c index a7e2839b0a..2506f559d5 100644 --- a/BaseTools/Source/C/EfiRom/EfiRom.c +++ b/BaseTools/Source/C/EfiRom/EfiRom.c @@ -1014,7 +1014,7 @@ Returns: // Device IDs specified with -i // Make sure there's at least one more parameter // - if (Argc < 1) { + if (Argc == 1) { Error (NULL, 0, 2000, "Invalid parameter", "Missing Device Id with %s option!", OptionName); ReturnStatus = 1; goto Done; -- cgit v1.2.3