diff options
author | Jacob Garber <jgarber1@ualberta.ca> | 2019-04-06 16:10:36 -0600 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-05-15 21:02:49 +0000 |
commit | dce10f8f92c4e771cf54544679fcbe10f094afdf (patch) | |
tree | bfd77a12783b6f31afb75a66c3c0b15e75baa5e2 /payloads | |
parent | 7aeeb4839023867d9a6c56854fb2e8a2143bf788 (diff) | |
download | coreboot-dce10f8f92c4e771cf54544679fcbe10f094afdf.tar.xz |
payloads/coreinfo: Remove unused variable
The 'last' variable is unused, and has been for the entire history of
this file.
Found-by: Clang Static Analyzer
Signed-off-by: Jacob Garber <jgarber1@ualberta.ca>
Change-Id: Ic86a6d8d2b47585f901f1e48ae88735534c834ba
Reviewed-on: https://review.coreboot.org/c/coreboot/+/32796
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'payloads')
-rw-r--r-- | payloads/coreinfo/pci_module.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/payloads/coreinfo/pci_module.c b/payloads/coreinfo/pci_module.c index ff042af65d..3060161fe0 100644 --- a/payloads/coreinfo/pci_module.c +++ b/payloads/coreinfo/pci_module.c @@ -103,15 +103,10 @@ static void show_config_space(WINDOW *win, int row, int col, int index) static int pci_module_redraw(WINDOW *win) { unsigned int bus, slot, func; - int i, last; + int i; print_module_title(win, "PCI Device List"); - last = menu_first + MENU_VISIBLE; - - if (last > devices_index) - last = devices_index; - for (i = 0; i < MENU_VISIBLE; i++) { int item = menu_first + i; |