summaryrefslogtreecommitdiff
path: root/BaseTools/Source/Python/Workspace/DecBuildData.py
diff options
context:
space:
mode:
authorDandan Bi <dandan.bi@intel.com>2018-11-07 11:14:22 +0300
committerLiming Gao <liming.gao@intel.com>2018-11-21 08:01:02 +0300
commit63f151aadb0a96467cd73f8c648c223f13fe37ba (patch)
tree5b0e591757e6ae28491e351f7a956a63e6173dbc /BaseTools/Source/Python/Workspace/DecBuildData.py
parent3cc9af5ce349466f55898929c60d80d741b6699d (diff)
downloadedk2-63f151aadb0a96467cd73f8c648c223f13fe37ba.tar.xz
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/Workspace/DecBuildData.py')
0 files changed, 0 insertions, 0 deletions