diff options
author | Dandan Bi <dandan.bi@intel.com> | 2018-11-07 16:14:22 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2018-11-08 13:40:08 +0800 |
commit | 8cd4e734ccdfbc961c72aeaa8dbd3f5154171f9b (patch) | |
tree | 32d1441316c47d7e6896ef54f44943582ad1abbc /BaseTools/Source/Python/GenFds/FfsFileStatement.py | |
parent | 3eacb4751a6879ab2d2a4c1c1b9243fe50b0194c (diff) | |
download | edk2-8cd4e734ccdfbc961c72aeaa8dbd3f5154171f9b.tar.gz edk2-8cd4e734ccdfbc961c72aeaa8dbd3f5154171f9b.tar.bz2 edk2-8cd4e734ccdfbc961c72aeaa8dbd3f5154171f9b.zip |
MdeModulePkg/DisplayEngine: Remove useless NULL ptr check for NewPos
In function UiDisplayMenu, the NewPos ptr which used to point to the
highlight menu entry. It will always point to the menu entry which
need to be highlighted or the gMenuOption menu if the highlight menu
is not found.
So we can remove the NULL ptr check for NewPos in this function.
And add the ASSERT code to avoid if any false positive reports
of NULL pointer dereference issue raised from static analysis.
Cc: Liming Gao <liming.gao@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Cc: Hao Wu <hao.a.wu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/GenFds/FfsFileStatement.py')
0 files changed, 0 insertions, 0 deletions