diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2020-04-21 21:20:44 +0200 |
---|---|---|
committer | Edward O'Callaghan <quasisec@chromium.org> | 2020-04-24 00:53:27 +0000 |
commit | 577c6b7fb965470e1e8158145b60a21da3b8f1b7 (patch) | |
tree | 2aac960ca45af80720bbb8fca084a904b444b3eb | |
parent | a3519561bd0fb44153bb376322b799000657576f (diff) | |
download | flashrom-577c6b7fb965470e1e8158145b60a21da3b8f1b7.tar.gz flashrom-577c6b7fb965470e1e8158145b60a21da3b8f1b7.tar.bz2 flashrom-577c6b7fb965470e1e8158145b60a21da3b8f1b7.zip |
pcidev.c: Drop unused variable
Change-Id: I6eea3e34ed6fc5d3fe65d5cf7e7bfc5e571bfa73
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/40576
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
-rw-r--r-- | pcidev.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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++; } |