summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--payloads/coreinfo/pci_module.c7
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;