summaryrefslogtreecommitdiff
path: root/ShellPkg/Library/UefiShellNetwork1CommandsLib/Ifconfig.c
diff options
context:
space:
mode:
authorjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>2011-03-30 16:12:42 +0000
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>2011-03-30 16:12:42 +0000
commit16751bb43d985132923173773a64595c15d8c290 (patch)
tree0eb1c6e51166ab77f05015d0dd49a9bca76553ca /ShellPkg/Library/UefiShellNetwork1CommandsLib/Ifconfig.c
parentb36653bc1683c189e3d264f6192012334a459081 (diff)
downloadedk2-platforms-16751bb43d985132923173773a64595c15d8c290.tar.xz
remove unused variable.
add some parens. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11457 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ShellPkg/Library/UefiShellNetwork1CommandsLib/Ifconfig.c')
-rw-r--r--ShellPkg/Library/UefiShellNetwork1CommandsLib/Ifconfig.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ShellPkg/Library/UefiShellNetwork1CommandsLib/Ifconfig.c b/ShellPkg/Library/UefiShellNetwork1CommandsLib/Ifconfig.c
index 2e8a09fc33..94c9c021ac 100644
--- a/ShellPkg/Library/UefiShellNetwork1CommandsLib/Ifconfig.c
+++ b/ShellPkg/Library/UefiShellNetwork1CommandsLib/Ifconfig.c
@@ -1657,9 +1657,9 @@ ShellCommandRunIfconfig (
ListOperation = ShellCommandLineGetFlag(Package, L"-l");
SetOperation = ShellCommandLineGetFlag(Package, L"-s");
- if (ClearOperation && ListOperation
- ||SetOperation && ListOperation
- ||ClearOperation && SetOperation
+ if ((ClearOperation && ListOperation)
+ ||(SetOperation && ListOperation)
+ ||(ClearOperation && SetOperation)
) {
ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_CON), gShellNetwork1HiiHandle);
ShellStatus = SHELL_INVALID_PARAMETER;