]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ShellPkg\Tftp.c: Refine parameter name and use implicit comparison for BOOLEAN variable.
authorQiu Shumin <shumin.qiu@intel.com>
Fri, 14 Aug 2015 07:20:09 +0000 (07:20 +0000)
committershenshushi <shenshushi@Edk2>
Fri, 14 Aug 2015 07:20:09 +0000 (07:20 +0000)
1. Refine parameter name to consistent with function headers.
2. To avoid potential bug BOOLEAN values should not use explicit comparisons to TRUE or FALSE.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Qiu Shumin <shumin.qiu@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18222 6f19259b-4bc3-4df7-8a09-765794883524

ShellPkg/Library/UefiShellTftpCommandLib/Tftp.c

index d8374850fb914d08cf1f7deb3c80a00a155e8f23..d2f7046de037cdcaacce7a7265f4cbd2ca4e3e0d 100644 (file)
@@ -73,7 +73,7 @@ STATIC
 EFI_STATUS \r
 GetNicName (\r
   IN   EFI_HANDLE  ControllerHandle,\r
-  IN   UINTN       Index,\r
+  IN   UINTN       NicNumber,\r
   OUT  CHAR16      *NicName\r
   );\r
 \r
@@ -524,7 +524,7 @@ ShellCommandRunTftp (
       );\r
   }\r
 \r
-  if ((UserNicName != NULL) && (NicFound == FALSE)) {\r
+  if ((UserNicName != NULL) && (!NicFound)) {\r
     ShellPrintHiiEx (\r
       -1, -1, NULL, STRING_TOKEN (STR_TFTP_ERR_NIC_NOT_FOUND),\r
       gShellTftpHiiHandle, UserNicName\r