ShellPkg: Clean up source files
1. Do not use tab characters 2. No trailing white space in one line 3. All files must end with CRLF Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
This commit is contained in:
@ -79,7 +79,7 @@ CommandInit(
|
||||
UINTN Index;
|
||||
EFI_STATUS Status;
|
||||
CHAR8 *PlatformLang;
|
||||
|
||||
|
||||
GetEfiGlobalVariable2 (EFI_PLATFORM_LANG_VARIABLE_NAME, (VOID**)&PlatformLang, NULL);
|
||||
if (PlatformLang == NULL) {
|
||||
return EFI_UNSUPPORTED;
|
||||
@ -115,7 +115,7 @@ CommandInit(
|
||||
|
||||
//
|
||||
// Find the best matching matching language from the supported languages
|
||||
// of Unicode Collation2 protocol.
|
||||
// of Unicode Collation2 protocol.
|
||||
//
|
||||
BestLanguage = GetBestLanguage (
|
||||
Uc->SupportedLanguages,
|
||||
@ -311,7 +311,7 @@ ShellCommandFindDynamicCommand (
|
||||
//
|
||||
// not found or out of resources
|
||||
//
|
||||
return NULL;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
for (NextCommand = CommandHandleList; *NextCommand != NULL; NextCommand++) {
|
||||
@ -328,7 +328,7 @@ ShellCommandFindDynamicCommand (
|
||||
if (gUnicodeCollation->StriColl(
|
||||
gUnicodeCollation,
|
||||
(CHAR16*)CommandString,
|
||||
(CHAR16*)DynamicCommand->CommandName) == 0
|
||||
(CHAR16*)DynamicCommand->CommandName) == 0
|
||||
){
|
||||
FreePool(CommandHandleList);
|
||||
return (DynamicCommand);
|
||||
@ -429,7 +429,7 @@ ShellCommandGetDynamicCommandHelp(
|
||||
//
|
||||
// TODO: how to get proper language?
|
||||
//
|
||||
return DynamicCommand->GetHelp(DynamicCommand, "en");
|
||||
return DynamicCommand->GetHelp(DynamicCommand, "en");
|
||||
}
|
||||
|
||||
/**
|
||||
@ -847,7 +847,7 @@ ShellCommandRegisterAlias (
|
||||
{
|
||||
ALIAS_LIST *Node;
|
||||
ALIAS_LIST *CommandAlias;
|
||||
ALIAS_LIST *PrevCommandAlias;
|
||||
ALIAS_LIST *PrevCommandAlias;
|
||||
INTN LexicalMatchValue;
|
||||
|
||||
//
|
||||
@ -896,7 +896,7 @@ ShellCommandRegisterAlias (
|
||||
//
|
||||
// Swap PrevCommandAlias and CommandAlias list entry if PrevCommandAlias list entry
|
||||
// is alphabetically greater than CommandAlias list entry
|
||||
//
|
||||
//
|
||||
if (LexicalMatchValue > 0) {
|
||||
CommandAlias = (ALIAS_LIST *) SwapListEntries (&PrevCommandAlias->Link, &CommandAlias->Link);
|
||||
} else if (LexicalMatchValue < 0) {
|
||||
|
Reference in New Issue
Block a user