MdeModulePkg/Bds: Remove assertion in BmCharToUint

BmCharToUint() could be called using external data and it
already contains logic to return -1 when data is invalid,
so removing unnecessary assertion to avoid system hang.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
This commit is contained in:
Ruiyu Ni 2017-10-10 16:39:12 +08:00
parent 90f3922b01
commit 618ef6f9ba
1 changed files with 0 additions and 1 deletions

View File

@ -420,7 +420,6 @@ BmCharToUint (
return (Char - L'A' + 0xA);
}
ASSERT (FALSE);
return (UINTN) -1;
}