summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRichard Spiegel <richard.spiegel@amd.corp-partner.google.com>2018-08-07 14:51:59 -0700
committerMartin Roth <martinroth@google.com>2018-08-09 15:47:07 +0000
commit5e9785d6e4ff4fd0b3f47afd3ef835ebe5347836 (patch)
tree302367a03587e942541c701f14127c219544d895 /src
parentb1299c7aab328e92f32fd5b25408286260876b77 (diff)
downloadcoreboot-5e9785d6e4ff4fd0b3f47afd3ef835ebe5347836.tar.xz
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 <richard.spiegel@silverbackltd.com> Reviewed-on: https://review.coreboot.org/27949 Reviewed-by: Martin Roth <martinroth@google.com> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r--src/device/pci_rom.c2
1 files changed, 1 insertions, 1 deletions
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);