diff options
author | Ruiyu Ni <ruiyu.ni@intel.com> | 2017-10-10 16:39:12 +0800 |
---|---|---|
committer | Ruiyu Ni <ruiyu.ni@intel.com> | 2017-10-12 10:00:48 +0800 |
commit | 618ef6f9bae14e1543d61993ab7ab8992063e4cc (patch) | |
tree | 657129f25f17a7158c0463c2cafadc0776d4760a /MdeModulePkg/Library/UefiBootManagerLib | |
parent | 90f3922b018e08594ae6746252984495d3bb8c74 (diff) | |
download | edk2-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.c | 1 |
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;
}
|