Skip to content

Commit

Permalink
com32/hdt/hdt-menu-summary.c: remove variables set but not used
Browse files Browse the repository at this point in the history
gcc 4.6 warns on variables set but not used, so remove them.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
  • Loading branch information
H. Peter Anvin committed Mar 16, 2011
1 parent 9a2c1a4 commit 9fe14d6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions com32/hdt/hdt-menu-summary.c
Expand Up @@ -158,7 +158,6 @@ void compute_summarymenu(struct s_my_menu *menu, struct s_hardware *hardware)
if (hardware->modules_pcimap_return_code != -ENOMODULESPCIMAP) {
add_item("", "", OPT_SEP, "", 0);

bool kmod = false;
struct pci_device *pci_device;
char kernel_modules[LINUX_KERNEL_MODULE_SIZE *
MAX_KERNEL_MODULES_PER_PCI_DEVICE];
Expand Down Expand Up @@ -191,7 +190,6 @@ void compute_summarymenu(struct s_my_menu *menu, struct s_hardware *hardware)

add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0);
menu->items_count++;
kmod = true;
}
}
}
Expand Down

0 comments on commit 9fe14d6

Please sign in to comment.