]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/unicode_fold3_key.c
MdeModulePkg/Oniguruma: Remove redundant IF statement
[mirror_edk2.git] / MdeModulePkg / Universal / RegularExpressionDxe / Oniguruma / unicode_fold3_key.c
index bdd5667c6ae2dd83f4e7744694900aef2f90fc7a..b36500b135e6e11129198e0108c48a8ee59441e0 100644 (file)
@@ -121,17 +121,13 @@ onigenc_unicode_fold3_key(OnigCodePoint codes[])
       0\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, OnigUnicodeFolds3 + index, 3) == 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, OnigUnicodeFolds3 + index, 3) == 0) {\r
+        return index;\r
+      }\r
     }\r
+\r
   return -1;\r
 }\r