summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ShellPkg/Library/UefiShellDebug1CommandsLib/Compress.c1
-rw-r--r--ShellPkg/Library/UefiShellNetwork1CommandsLib/Ifconfig.c6
2 files changed, 3 insertions, 4 deletions
diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/Compress.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/Compress.c
index 870335b9a1..afe3ec0858 100644
--- a/ShellPkg/Library/UefiShellDebug1CommandsLib/Compress.c
+++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/Compress.c
@@ -108,7 +108,6 @@ STATIC UINT16 mLeft[2 * NC - 1];
STATIC UINT16 mRight[2 * NC - 1];
STATIC UINT16 mCrcTable[UINT8_MAX + 1];
STATIC UINT16 mCFreq[2 * NC - 1];
-STATIC UINT16 mCTable[4096];
STATIC UINT16 mCCode[NC];
STATIC UINT16 mPFreq[2 * NP - 1];
STATIC UINT16 mPTCode[NPT];
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;