summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Library/UefiBootManagerLib
diff options
context:
space:
mode:
authorRuiyu Ni <ruiyu.ni@intel.com>2017-10-10 16:39:12 +0800
committerRuiyu Ni <ruiyu.ni@intel.com>2017-10-12 10:00:48 +0800
commit618ef6f9bae14e1543d61993ab7ab8992063e4cc (patch)
tree657129f25f17a7158c0463c2cafadc0776d4760a /MdeModulePkg/Library/UefiBootManagerLib
parent90f3922b018e08594ae6746252984495d3bb8c74 (diff)
downloadedk2-618ef6f9bae14e1543d61993ab7ab8992063e4cc.tar.gz
edk2-618ef6f9bae14e1543d61993ab7ab8992063e4cc.tar.bz2
edk2-618ef6f9bae14e1543d61993ab7ab8992063e4cc.zip
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>
Diffstat (limited to 'MdeModulePkg/Library/UefiBootManagerLib')
-rw-r--r--MdeModulePkg/Library/UefiBootManagerLib/BmMisc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/MdeModulePkg/Library/UefiBootManagerLib/BmMisc.c b/MdeModulePkg/Library/UefiBootManagerLib/BmMisc.c
index 11ab86792a..a3fa254245 100644
--- a/MdeModulePkg/Library/UefiBootManagerLib/BmMisc.c
+++ b/MdeModulePkg/Library/UefiBootManagerLib/BmMisc.c
@@ -420,7 +420,6 @@ BmCharToUint (
return (Char - L'A' + 0xA);
}
- ASSERT (FALSE);
return (UINTN) -1;
}