summaryrefslogtreecommitdiff
path: root/com32/hdt/hdt-cli-kernel.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2011-03-16 13:10:36 -0700
committerH. Peter Anvin <hpa@zytor.com>2011-03-16 13:10:36 -0700
commit9a2c1a4e18ad1fa1b65848607124ca3d6550d925 (patch)
treeda262438e46393f98a0d8b4c910a6faaca0b54df /com32/hdt/hdt-cli-kernel.c
parent0171777467b905d60f0012a8eaceeb5992b379ed (diff)
downloadsyslinux-9a2c1a4e18ad1fa1b65848607124ca3d6550d925.tar.gz
com32/hdt/hdt-cli-kernel.c: remove variables set but not used
gcc 4.6 warns on variables set but not used, so remove them. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/hdt/hdt-cli-kernel.c')
-rw-r--r--com32/hdt/hdt-cli-kernel.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/com32/hdt/hdt-cli-kernel.c b/com32/hdt/hdt-cli-kernel.c
index 89d013b4..0160bed9 100644
--- a/com32/hdt/hdt-cli-kernel.c
+++ b/com32/hdt/hdt-cli-kernel.c
@@ -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;
}