diff --git a/ShellPkg/Library/UefiShellTftpCommandLib/Tftp.c b/ShellPkg/Library/UefiShellTftpCommandLib/Tftp.c index d8374850fb..d2f7046de0 100644 --- a/ShellPkg/Library/UefiShellTftpCommandLib/Tftp.c +++ b/ShellPkg/Library/UefiShellTftpCommandLib/Tftp.c @@ -73,7 +73,7 @@ STATIC EFI_STATUS GetNicName ( IN EFI_HANDLE ControllerHandle, - IN UINTN Index, + IN UINTN NicNumber, OUT CHAR16 *NicName ); @@ -524,7 +524,7 @@ ShellCommandRunTftp ( ); } - if ((UserNicName != NULL) && (NicFound == FALSE)) { + if ((UserNicName != NULL) && (!NicFound)) { ShellPrintHiiEx ( -1, -1, NULL, STRING_TOKEN (STR_TFTP_ERR_NIC_NOT_FOUND), gShellTftpHiiHandle, UserNicName