]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg: SataControllerDxe: add cascading error handling to Start()
authorLaszlo Ersek <lersek@redhat.com>
Tue, 22 Sep 2015 11:18:22 +0000 (11:18 +0000)
committerlersek <lersek@Edk2>
Tue, 22 Sep 2015 11:18:22 +0000 (11:18 +0000)
commit379b17965f0fc3fcf542c606ad628856c2504a2e
tree788842f64ff96f27e71ab6a8eb09ccea2ca928e8
parent12e92a23ada7b20e424e782fe1e2d325c22e161c
OvmfPkg: SataControllerDxe: add cascading error handling to Start()

In the next patch we'll add another PCI operation to
SataControllerStart(), which, on error, has to be rolled back similarly to
other actions already being done in SataControllerStart(). Since that PCI
operation won't provide a non-NULL pointer on success, its rollback isn't
really suitable for the current error handling in SataControllerStart().

Employ the traditional cascading labels instead.

Cc: Alexander Graf <agraf@suse.de>
Cc: Reza Jelveh <reza.jelveh@tuhh.de>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Hannes Reinecke <hare@suse.de>
Cc: Gabriel L. Somlo <somlo@cmu.edu>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Tested-by: Gabriel Somlo <somlo@cmu.edu>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18527 6f19259b-4bc3-4df7-8a09-765794883524
OvmfPkg/SataControllerDxe/SataController.c