]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg: QemuVideoDxe: simplify UEFI driver model use in Supported() / Start()
authorLaszlo Ersek <lersek@redhat.com>
Mon, 3 Mar 2014 08:40:28 +0000 (08:40 +0000)
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 3 Mar 2014 08:40:28 +0000 (08:40 +0000)
commit42d0cad751d610a8e6680ffd468fc40c970e96c0
treee4fe9e5a83bb363d6e7942e5cfedb1668a977d87
parentd89186bc869bfedd9f83f8e52f995dfd04691521
OvmfPkg: QemuVideoDxe: simplify UEFI driver model use in Supported() / Start()

A bus driver is allowed to ignore the actual value of RemainingDevicePath
in Supported() and Start(), and to produce all child handles at once.

This in effect means the following invariants for QemuVideoDxe:
- (RemainingDevicePath == NULL), and
- (Private->GopDevicePath != NULL)

Simplify Supported() and Start() by substituting constant TRUE and FALSE
(as appropriate) in expressions that check RemainingDevicePath and/or
Private->GopDevicePath.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15283 6f19259b-4bc3-4df7-8a09-765794883524
OvmfPkg/QemuVideoDxe/Driver.c