[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] PCI Using macro definition instead of a simple digi
From: |
Wanpeng Li |
Subject: |
[Qemu-devel] [PATCH] PCI Using macro definition instead of a simple digit |
Date: |
Sat, 3 Mar 2012 20:47:58 +0800 |
PCI_CLASS_DISPLAY_VGA has already defined in hw/pci_ids.h, so use the
macro definition instead of a simple digit.
Signed-off-by: Wanpeng Li <address@hidden>
---
hw/pci.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/hw/pci.c b/hw/pci.c
index fe71666..274d86d 100644
--- a/hw/pci.c
+++ b/hw/pci.c
@@ -1784,7 +1784,7 @@ static int pci_add_option_rom(PCIDevice *pdev, bool
is_default_rom)
* for 0.11 compatibility.
*/
int class = pci_get_word(pdev->config + PCI_CLASS_DEVICE);
- if (class == 0x0300) {
+ if (class == PCI_CLASS_DISPLAY_VGA) {
rom_add_vga(pdev->romfile);
} else {
rom_add_option(pdev->romfile, -1);
--
1.7.5.4