summaryrefslogtreecommitdiff
path: root/satamv.c
diff options
context:
space:
mode:
authorstefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2014-04-26 16:12:15 +0000
committerstefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2014-04-26 16:12:15 +0000
commitc30299065455be105b1008796369da020e0a55e7 (patch)
tree7549da31dadd43e2e9f5dfb4821bcb5c7dc713a9 /satamv.c
parent10af22a1ee9e583359b1ae74bd8b82187b978787 (diff)
downloadflashrom-c30299065455be105b1008796369da020e0a55e7.tar.gz
CID1130002: Logically dead code due to copy and paste error.
What we really want to do is check whether PCI_BASE_ADDRESS_2 is valid at this point, and not PCI_BASE_ADDRESS_0. Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1776 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'satamv.c')
-rw-r--r--satamv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/satamv.c b/satamv.c
index 3065f0c..e03508e 100644
--- a/satamv.c
+++ b/satamv.c
@@ -138,7 +138,7 @@ int satamv_init(void)
pci_rmmio_writel(tmp, mv_bar + GPIO_PORT_CONTROL);
/* Get I/O BAR location. */
- tmp = pcidev_readbar(dev, PCI_BASE_ADDRESS_2);
+ addr = pcidev_readbar(dev, PCI_BASE_ADDRESS_2);
if (!addr)
return 1;
@@ -146,7 +146,7 @@ int satamv_init(void)
* FIXME: Check if the I/O BAR is actually reachable.
* This is an arch specific check.
*/
- mv_iobar = tmp & 0xffff;
+ mv_iobar = addr & 0xffff;
msg_pspew("Activating I/O BAR at 0x%04x\n", mv_iobar);
/* 512 kByte with two 8-bit latches, and