Skip to content

Commit

Permalink
com32/hdt/hdt-cli-kernel.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 0171777 commit 9a2c1a4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions com32/hdt/hdt-cli-kernel.c
Expand Up @@ -92,19 +92,15 @@ static void show_kernel_modules(int argc __unused, char **argv __unused,
struct pci_device *pci_device;
char kernel_modules[LINUX_KERNEL_MODULE_SIZE *
MAX_KERNEL_MODULES_PER_PCI_DEVICE];
bool nopciids = false;
bool nomodulespcimap = false;
char modules[MAX_PCI_CLASSES][256] = {{0}};
char category_name[MAX_PCI_CLASSES][256] = {{0}};

if (hardware->pci_ids_return_code == -ENOPCIIDS) {
nopciids = true;
more_printf(" Missing pci.ids, we can't compute the list\n");
return;
}

if (hardware->modules_pcimap_return_code == -ENOMODULESPCIMAP) {
nomodulespcimap = true;
more_printf(" Missing modules.pcimap, we can't compute the list\n");
return;
}
Expand Down

0 comments on commit 9a2c1a4

Please sign in to comment.