audk/MdeModulePkg/Universal/DisplayEngineDxe
Dandan Bi 63f151aadb 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>
2018-11-21 13:01:02 +08:00
..
DisplayEngine.uni MdeModulePkg: Clean up source files 2018-06-28 11:19:45 +08:00
DisplayEngineDxe.inf MdeModulePkg: Removing ipf which is no longer supported from edk2. 2018-09-06 15:25:16 +08:00
DisplayEngineExtra.uni MdeModulePkg: Clean up source files 2018-06-28 11:19:45 +08:00
FormDisplay.c MdeModulePkg/DisplayEngine: Remove useless NULL ptr check for NewPos 2018-11-21 13:01:02 +08:00
FormDisplay.h MdeModulePkg: Clean up source files 2018-06-28 11:19:45 +08:00
FormDisplayStr.uni
InputHandler.c MdeModulePkg: Clean up source files 2018-06-28 11:19:45 +08:00
Popup.c MdeModulePkg/DisplayEngineDxe: Remove unnecessary parentheses in 'if' 2017-12-06 08:47:56 +08:00
ProcessOptions.c MdeModulePkg: Clean up source files 2018-06-28 11:19:45 +08:00