]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg/Bds: Remove assertion in BmCharToUint
authorRuiyu Ni <ruiyu.ni@intel.com>
Tue, 10 Oct 2017 08:39:12 +0000 (16:39 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Thu, 12 Oct 2017 02:00:48 +0000 (10:00 +0800)
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>
MdeModulePkg/Library/UefiBootManagerLib/BmMisc.c

index 11ab86792a52534120070a4541d784838375fc7d..a3fa254245928656827c6ddc74aa7f91fd9e855c 100644 (file)
@@ -420,7 +420,6 @@ BmCharToUint (
     return (Char - L'A' + 0xA);\r
   }\r
 \r
-  ASSERT (FALSE);\r
   return (UINTN) -1;\r
 }\r
 \r