audk/MdeModulePkg
Star Zeng d9b51b21e7 MdeModulePkg: TerminalDxe: avoid checking uninitialized variable
The SerialIo->GetControl() function is not required to set the
Control output parameter on error. Make sure we apply the
EFI_SERIAL_INPUT_BUFFER_EMPTY optimization in
TerminalConInTimerHandler() only if the SerialIo->GetControl()
function call set that bit in the Control variable.

Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Feng Tian <feng.tian@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Suggested-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Michael Kinney <michael.d.kinney@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18962 6f19259b-4bc3-4df7-8a09-765794883524
2015-11-26 08:46:20 +00:00
..
Application MdeModulePkg:Correct the file name in UiApp.inf 2015-11-26 06:37:14 +00:00
Bus MdeModulePkg: Fix a PciBusDxe hot plug bug 2015-11-03 02:34:21 +00:00
Core Move CommunicationBuffer from stack to global variable. 2015-11-25 13:14:27 +00:00
Include MdeModulePkg FileExplorerDxe: Create file explorer Protocol. 2015-11-23 05:42:21 +00:00
Library MdeModulePkg: Clean code to follow C Coding style. 2015-11-25 08:08:25 +00:00
Logo MdeModulePkg: Convert non DOS format files to DOS format and remove unused module UNI files. 2014-09-03 08:39:12 +00:00
Universal MdeModulePkg: TerminalDxe: avoid checking uninitialized variable 2015-11-26 08:46:20 +00:00
Contributions.txt */Contributions.txt: Update example email address 2015-02-03 17:29:14 +00:00
License.txt Update copyright format 2012-04-24 06:49:39 +00:00
MdeModulePkg.dec MdeModulePkg:Create Boot Manager Library 2015-11-23 09:32:08 +00:00
MdeModulePkg.dsc MdeModulePkg:Refine the UiApp 2015-11-23 09:37:24 +00:00
MdeModulePkg.uni MdeModulePkg PiDxeS3BootScriptLib: Remove a hidden assumption. 2015-09-15 07:49:12 +00:00
MdeModulePkgExtra.uni MdeModulePkg: INF/DEC file updates to EDK II packages 2014-08-28 06:55:48 +00:00