]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Bus/Pci/PciSioSerialDxe/Serial.c
MdeModulePkg/PciSioSerialDxe: Fix compiler warnings
authorMichael Kinney <michael.d.kinney@intel.com>
Mon, 14 Dec 2015 05:29:02 +0000 (05:29 +0000)
committererictian <erictian@Edk2>
Mon, 14 Dec 2015 05:29:02 +0000 (05:29 +0000)
commit83809dc0186eea34a9b0db6df306abe9e1c7776b
tree624885778a97b2e05423072ac1cf955ccd5496fe
parentc071461ebfcbc9b2bb067cc146d182d4e1138465
MdeModulePkg/PciSioSerialDxe: Fix compiler warnings

Add missing braces in module global mControllerDevicePathTemplate.
Initialize ControllerNumber and ContainsControllerNode in
SerialControllerDriverStart() to address warning for potential use
before initialization warning.
Move initialization of local SerialIo earlier in
SerialControllerDriverStart() to address warning for potential use
before initialization warning.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19232 6f19259b-4bc3-4df7-8a09-765794883524
MdeModulePkg/Bus/Pci/PciSioSerialDxe/Serial.c