mirror of https://github.com/acidanthera/audk.git
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>
This commit is contained in:
parent
d4945b1027
commit
88e47d1959
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue