]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/unicode_fold2_key.c
MdeModulePkg/Oniguruma: Remove redundant IF statement
[mirror_edk2.git] / MdeModulePkg / Universal / RegularExpressionDxe / Oniguruma / unicode_fold2_key.c
index 3d93e2417a2c9d741299242686dfc8c3f220c3d0..44f8cb6600710b4631547c8ff808e059c2dafd42 100644 (file)
@@ -211,17 +211,12 @@ onigenc_unicode_fold2_key(OnigCodePoint codes[])
       129\r
     };\r
 \r
-  if (0 == 0)\r
-    {\r
-      int key = hash(codes);\r
-\r
-      if (key <= MAX_HASH_VALUE)\r
-        {\r
-          int index = wordlist[key];\r
-\r
-          if (index >= 0 && onig_codes_cmp(codes, OnigUnicodeFolds2 + index, 2) == 0)\r
-            return index;\r
-        }\r
+    int key = hash(codes);\r
+    if (key <= MAX_HASH_VALUE) {\r
+      int index = wordlist[key];\r
+      if (index >= 0 && onig_codes_cmp(codes, OnigUnicodeFolds2 + index, 2) == 0)\r
+        return index;\r
     }\r
+\r
   return -1;\r
 }\r