From 5e9785d6e4ff4fd0b3f47afd3ef835ebe5347836 Mon Sep 17 00:00:00 2001 From: Richard Spiegel Date: Tue, 7 Aug 2018 14:51:59 -0700 Subject: src/device/pci_rom.c: Remove double initialization In procedure pci_rom_probe(), variable vendev is initialized twice. Remove one initialization. BUG=b:112253891 TEST=Build and boot grunt. Change-Id: I8a71aa1aea2047ab2d98e09d1d6610de552b6cb4 Signed-off-by: Richard Spiegel Reviewed-on: https://review.coreboot.org/27949 Reviewed-by: Martin Roth Reviewed-by: Marshall Dawson Reviewed-by: Paul Menzel Tested-by: build bot (Jenkins) --- 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 35d3d69bd4..517fb33baa 100644 --- a/src/device/pci_rom.c +++ b/src/device/pci_rom.c @@ -41,7 +41,7 @@ struct rom_header *pci_rom_probe(struct device *dev) rom_header = cbfs_boot_map_optionrom(dev->vendor, dev->device); u32 vendev = (dev->vendor << 16) | dev->device; - u32 mapped_vendev = vendev; + u32 mapped_vendev; mapped_vendev = map_oprom_vendev(vendev); -- cgit v1.2.3