return FALSE;\r
}\r
\r
+ Segment = 0;\r
+ Bus = 0;\r
if ((AccessType == ShellMmPci) || (AccessType == ShellMmPciExpress)) {\r
ShellMmDecodePciAddress ((BOOLEAN) (AccessType == ShellMmPci), Address, &Segment, &Bus, NULL, NULL, NULL);\r
}\r
// skip space characters\r
//\r
for (Index = 0; InputStr[Index] == ' '; Index++);\r
- }\r
\r
- if ((InputStr != NULL) && (InputStr[Index] != CHAR_NULL)) {\r
- if ((InputStr[Index] == '.') || (InputStr[Index] == 'q') || (InputStr[Index] == 'Q')) {\r
- Complete = TRUE;\r
- } else if (!EFI_ERROR (ShellConvertStringToUint64 (InputStr + Index, &Buffer, TRUE, TRUE)) &&\r
- (Buffer <= mShellMmMaxNumber[Size])\r
- ) {\r
- ShellMmAccess (AccessType, PciRootBridgeIo, CpuIo, FALSE, Address, Size, &Buffer);\r
- } else {\r
- ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_MM_ERROR), gShellDebug1HiiHandle, L"mm");\r
- continue;\r
+ if (InputStr[Index] != CHAR_NULL) {\r
+ if ((InputStr[Index] == '.') || (InputStr[Index] == 'q') || (InputStr[Index] == 'Q')) {\r
+ Complete = TRUE;\r
+ } else if (!EFI_ERROR (ShellConvertStringToUint64 (InputStr + Index, &Buffer, TRUE, TRUE)) &&\r
+ (Buffer <= mShellMmMaxNumber[Size])\r
+ ) {\r
+ ShellMmAccess (AccessType, PciRootBridgeIo, CpuIo, FALSE, Address, Size, &Buffer);\r
+ } else {\r
+ ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_MM_ERROR), gShellDebug1HiiHandle, L"mm");\r
+ continue;\r
+ }\r
}\r
}\r
\r