summaryrefslogtreecommitdiff
path: root/MdeModulePkg
diff options
context:
space:
mode:
Diffstat (limited to 'MdeModulePkg')
-rw-r--r--MdeModulePkg/Universal/HiiDatabaseDxe/String.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/MdeModulePkg/Universal/HiiDatabaseDxe/String.c b/MdeModulePkg/Universal/HiiDatabaseDxe/String.c
index d0d13f1..eeac9c2 100644
--- a/MdeModulePkg/Universal/HiiDatabaseDxe/String.c
+++ b/MdeModulePkg/Universal/HiiDatabaseDxe/String.c
@@ -1973,18 +1973,5 @@ HiiCompareLanguage (
// When languages are exactly same, they will be identical.
//
Language2Len = AsciiStrLen (Language2);
- if (AsciiStrnCmp (Language2, Language1, Language2Len) == 0) {
- return TRUE;
- }
-
- //
- // When Language1 is the sub tag of Language2, they will also be regarded as identical.
- // This is added to support current Shell. Shell string package uses "en" as language name.
- // But, it may use platform language "en-US" to get string value.
- //
- if (AsciiStrStr (Language2, Language1) == Language2) {
- return TRUE;
- }
-
- return FALSE;
+ return (BOOLEAN) (AsciiStrnCmp (Language1, Language2, Language2Len) == 0);
}