summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pcidev.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pcidev.c b/pcidev.c
index 54c1fd34c..e13b78ce4 100644
--- a/pcidev.c
+++ b/pcidev.c
@@ -189,7 +189,6 @@ struct pci_dev *pcidev_init(const struct dev_entry *devs, int bar)
char *msg = NULL;
int found = 0;
int i;
- uintptr_t addr = 0;
if (pci_init_common() != 0)
return NULL;
@@ -229,7 +228,7 @@ struct pci_dev *pcidev_init(const struct dev_entry *devs, int bar)
/* FIXME: We should count all matching devices, not
* just those with a valid BAR.
*/
- if ((addr = pcidev_readbar(dev, bar)) != 0) {
+ if (pcidev_readbar(dev, bar) != 0) {
found_dev = dev;
found++;
}