diff options
author | Richard Spiegel <richard.spiegel@amd.corp-partner.google.com> | 2018-08-07 14:51:59 -0700 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2018-08-09 15:47:07 +0000 |
commit | 5e9785d6e4ff4fd0b3f47afd3ef835ebe5347836 (patch) | |
tree | 302367a03587e942541c701f14127c219544d895 | |
parent | b1299c7aab328e92f32fd5b25408286260876b77 (diff) | |
download | coreboot-5e9785d6e4ff4fd0b3f47afd3ef835ebe5347836.tar.gz coreboot-5e9785d6e4ff4fd0b3f47afd3ef835ebe5347836.tar.bz2 coreboot-5e9785d6e4ff4fd0b3f47afd3ef835ebe5347836.zip |
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>
-rw-r--r-- | src/device/pci_rom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device/pci_rom.c b/src/device/pci_rom.c index 35d3d69bd485..517fb33baaea 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); |