summaryrefslogtreecommitdiffstats
path: root/BaseTools
diff options
context:
space:
mode:
authorwenyi,xie via groups.io <xiewenyi2=huawei.com@groups.io>2020-12-15 14:43:30 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2020-12-22 11:22:36 +0000
commit88e47d1959bfaf9417cfd4865ef3c6a926c1978b (patch)
treeaacddfb9f4df317b171071ad37782d3efd337dde /BaseTools
parentd4945b102730a54f58be6bda3369c6844565b7ee (diff)
downloadedk2-88e47d1959bfaf9417cfd4865ef3c6a926c1978b.tar.gz
edk2-88e47d1959bfaf9417cfd4865ef3c6a926c1978b.tar.bz2
edk2-88e47d1959bfaf9417cfd4865ef3c6a926c1978b.zip
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 <bob.c.feng@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Yuwei Chen <yuwei.chen@intel.com> Signed-off-by: Wenyi Xie <xiewenyi2@huawei.com> Reviewed-by: Bob Feng <bob.c.feng@intel.com>
Diffstat (limited to 'BaseTools')
-rw-r--r--BaseTools/Source/C/EfiRom/EfiRom.c2
1 files changed, 1 insertions, 1 deletions
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;