Commit 9391e4b8828a6ebcde843a2012f0fae4b601b302

Authored by Isaku Yamahata
Committed by Anthony Liguori
1 parent 1be7daa9

vmware_vga: clean up

use NULL instead of 0 for pci_register_device() argument
for consistency. Any other caller uses NULL.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Showing 1 changed file with 1 additions and 1 deletions
hw/vmware_vga.c
... ... @@ -1217,7 +1217,7 @@ void pci_vmsvga_init(PCIBus *bus)
1217 1217 /* Setup PCI configuration */
1218 1218 s = (struct pci_vmsvga_state_s *)
1219 1219 pci_register_device(bus, "QEMUware SVGA",
1220   - sizeof(struct pci_vmsvga_state_s), -1, 0, 0);
  1220 + sizeof(struct pci_vmsvga_state_s), -1, NULL, NULL);
1221 1221 pci_config_set_vendor_id(s->card.config, PCI_VENDOR_ID_VMWARE);
1222 1222 pci_config_set_device_id(s->card.config, SVGA_PCI_DEVICE_ID);
1223 1223 s->card.config[PCI_COMMAND] = 0x07; /* I/O + Memory */
... ...