pcidev.c: Drop unused variable
Change-Id: I6eea3e34ed6fc5d3fe65d5cf7e7bfc5e571bfa73
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Original-Reviewed-on: https://review.coreboot.org/c/flashrom/+/40576
Original-Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Original-Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Original-Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/flashrom-stable/+/71306
Reviewed-by: Nico Huber <nico.h@gmx.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
diff --git a/pcidev.c b/pcidev.c
index 5057d8f..892f7b1 100644
--- a/pcidev.c
+++ b/pcidev.c
@@ -189,7 +189,6 @@
char *msg = NULL;
int found = 0;
int i;
- uintptr_t addr = 0;
if (pci_init_common() != 0)
return NULL;
@@ -230,7 +229,7 @@
/* 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++;
}