From 6c8c8fcdbe99942406f00979cb19acc09fbc8c2c Mon Sep 17 00:00:00 2001 From: Pierre-Alexandre Meyer Date: Sat, 14 Mar 2009 11:57:16 -0700 Subject: [PATCH] hdt: Remove unused parameter in handle_pci_commands Impact: Signature change. The cli mode information is already in the function name. No need to pass it as a parameter. This fixes a compilation warning. Signed-off-by: Pierre-Alexandre Meyer --- com32/hdt/hdt-cli-pci.c | 3 +-- com32/hdt/hdt-cli.c | 2 +- com32/hdt/hdt-cli.h | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/com32/hdt/hdt-cli-pci.c b/com32/hdt/hdt-cli-pci.c index 6e65e75..6b6f519 100644 --- a/com32/hdt/hdt-cli-pci.c +++ b/com32/hdt/hdt-cli-pci.c @@ -224,8 +224,7 @@ void pci_show(char *item, struct s_hardware *hardware) show_pci_help(); } -void handle_pci_commands(char *cli_line, struct s_cli_mode *cli_mode, - struct s_hardware *hardware) +void handle_pci_commands(char *cli_line, struct s_hardware *hardware) { if (!strncmp(cli_line, CLI_SHOW, sizeof(CLI_SHOW) - 1)) { pci_show(strstr(cli_line, "show") + sizeof(CLI_SHOW), hardware); diff --git a/com32/hdt/hdt-cli.c b/com32/hdt/hdt-cli.c index bba4aee..793fdb6 100644 --- a/com32/hdt/hdt-cli.c +++ b/com32/hdt/hdt-cli.c @@ -191,7 +191,7 @@ void start_cli_mode(struct s_hardware *hardware, int argc, char *argv[]) handle_dmi_commands(cli_line, hardware); break; case PCI_MODE: - handle_pci_commands(cli_line, &cli_mode, hardware); + handle_pci_commands(cli_line, hardware); break; case HDT_MODE: handle_hdt_commands(cli_line, &cli_mode, hardware); diff --git a/com32/hdt/hdt-cli.h b/com32/hdt/hdt-cli.h index 77f6699..647de24 100644 --- a/com32/hdt/hdt-cli.h +++ b/com32/hdt/hdt-cli.h @@ -90,8 +90,7 @@ void show_dmi_memory_modules(struct s_hardware *hardware, bool clearscreen, // PCI STUFF #define CLI_PCI_DEVICE "device" void main_show_pci(struct s_hardware *hardware); -void handle_pci_commands(char *cli_line, struct s_cli_mode *cli_mode, - struct s_hardware *hardware); +void handle_pci_commands(char *cli_line, struct s_hardware *hardware); void pci_show(char *item, struct s_hardware *hardware); void cli_detect_pci(struct s_hardware *hardware); -- 2.7.4