MdeModulePkg/Oniguruma: Remove redundant IF statement

The if statement is not necessary, so keep it to edk2 style.
And this change has been merged to onigruma.
REF:https://github.com/kkos/oniguruma/pull/158

Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Hao A Wu <hao.a.wu@intel.com>
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com>
Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
This commit is contained in:
Shenglei Zhang
2019-10-15 14:46:26 +08:00
committed by Liming Gao
parent c18708d2f0
commit 2b23beb043
4 changed files with 26 additions and 44 deletions

View File

@ -3288,17 +3288,12 @@ onigenc_unicode_unfold_key(OnigCodePoint code)
{0x1e907, 4005, 1}
};
if (0 == 0)
{
int key = hash(&code);
if (key <= MAX_HASH_VALUE)
{
OnigCodePoint gcode = wordlist[key].code;
if (code == gcode && wordlist[key].index >= 0)
return &wordlist[key];
}
int key = hash(&code);
if (key <= MAX_HASH_VALUE) {
OnigCodePoint gcode = wordlist[key].code;
if (code == gcode && wordlist[key].index >= 0) {
return &wordlist[key];
}
}
return 0;
}