qemu: parse: drop redundant video config

The ram/vram = 0 bits aren't needed, and PostParse will fill in the
needed QXL default

Reviewed-by: John Ferlan <jferlan@redhat.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2017-06-28 09:54:16 -04:00
parent 1f17ce215f
commit 42845acb0b

View File

@ -2608,12 +2608,6 @@ qemuParseCommandLine(virCapsPtr caps,
if (VIR_ALLOC(vid) < 0)
goto error;
vid->type = video;
if (vid->type == VIR_DOMAIN_VIDEO_TYPE_QXL) {
vid->vgamem = QEMU_QXL_VGAMEM_DEFAULT;
} else {
vid->ram = 0;
vid->vgamem = 0;
}
vid->heads = 1;
if (VIR_APPEND_ELEMENT(def->videos, def->nvideos, vid) < 0) {