]> 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 9c4415af59a3f1adf3e84f1a4ef18df523b586dc..b36500b135e6e11129198e0108c48a8ee59441e0 100644 (file)
@@ -1,7 +1,7 @@
 /* This file was converted by gperf_fold_key_conv.py\r
       from gperf output file. */\r
 /* ANSI-C code produced by gperf version 3.1 */\r
-/* Command-line: /usr/bin/gperf -n -C -T -c -t -j1 -L ANSI-C -F,-1 -N onigenc_unicode_fold3_key unicode_fold3_key.gperf  */\r
+/* Command-line: /usr/local/bin/gperf -n -C -T -c -t -j1 -L ANSI-C -F,-1 -N onigenc_unicode_fold3_key unicode_fold3_key.gperf  */\r
 /* Computed positions: -k'3,6,9' */\r
 \r
 \r
@@ -121,19 +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
-\r
-\r