From 0f8b8d920c2f060bbe7a9139fde823e3b2e875d7 Mon Sep 17 00:00:00 2001 From: Elyes HAOUAS Date: Thu, 3 Jan 2019 10:23:28 +0100 Subject: src: Move constant to the right side of comparison Change-Id: I76d35a3643600f81a6da7e0af99c935ebd1c2fc7 Signed-off-by: Elyes HAOUAS Reviewed-on: https://review.coreboot.org/c/27015 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- src/device/pci_rom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/device/pci_rom.c') diff --git a/src/device/pci_rom.c b/src/device/pci_rom.c index 65989d4724..82d9a3056a 100644 --- a/src/device/pci_rom.c +++ b/src/device/pci_rom.c @@ -150,7 +150,7 @@ struct rom_header *pci_rom_load(struct device *dev, * whether the ROM image is for a VGA device because some * devices have a mismatch between the hardware and the ROM. */ - if (PCI_CLASS_DISPLAY_VGA == (dev->class >> 8)) { + if ((dev->class >> 8) == PCI_CLASS_DISPLAY_VGA) { #if !IS_ENABLED(CONFIG_MULTIPLE_VGA_ADAPTERS) extern struct device *vga_pri; /* Primary VGA device (device.c). */ if (dev != vga_pri) return NULL; /* Only one VGA supported. */ -- cgit v1.2.3