[syslinux:master] com32/hdt/hdt-cli-kernel.c: remove variables set but not used
syslinux-bot for H. Peter Anvin
hpa at zytor.com
Wed Mar 16 13:18:40 PDT 2011
Commit-ID: 9a2c1a4e18ad1fa1b65848607124ca3d6550d925
Gitweb: http://syslinux.zytor.com/commit/9a2c1a4e18ad1fa1b65848607124ca3d6550d925
Author: H. Peter Anvin <hpa at zytor.com>
AuthorDate: Wed, 16 Mar 2011 13:10:36 -0700
Committer: H. Peter Anvin <hpa at zytor.com>
CommitDate: Wed, 16 Mar 2011 13:10:36 -0700
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 at zytor.com>
---
com32/hdt/hdt-cli-kernel.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/com32/hdt/hdt-cli-kernel.c b/com32/hdt/hdt-cli-kernel.c
index 89d013b..0160bed 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;
}
More information about the Syslinux-commits
mailing list