From 519403a58373b447f26784f220316d32f0d2416c Mon Sep 17 00:00:00 2001 From: Pierre-Alexandre Meyer Date: Sat, 14 Mar 2009 11:31:29 -0700 Subject: [PATCH] hdt: Remove unused parameter in main_show_cpu 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-cpu.c | 2 +- com32/hdt/hdt-cli.c | 4 ++-- com32/hdt/hdt-cli.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/com32/hdt/hdt-cli-cpu.c b/com32/hdt/hdt-cli-cpu.c index 5b00af2..cfd66ef 100644 --- a/com32/hdt/hdt-cli-cpu.c +++ b/com32/hdt/hdt-cli-cpu.c @@ -169,7 +169,7 @@ void handle_cpu_commands(char *cli_line, struct s_hardware *hardware) } } -void main_show_cpu(struct s_hardware *hardware, struct s_cli_mode *cli_mode) +void main_show_cpu(struct s_hardware *hardware) { cpu_detect(hardware); detect_dmi(hardware); diff --git a/com32/hdt/hdt-cli.c b/com32/hdt/hdt-cli.c index 0fc81b3..b7014ac 100644 --- a/com32/hdt/hdt-cli.c +++ b/com32/hdt/hdt-cli.c @@ -262,7 +262,7 @@ void main_show_summary(struct s_hardware *hardware, struct s_cli_mode *cli_mode) detect_dmi(hardware); cpu_detect(hardware); clear_screen(); - main_show_cpu(hardware, cli_mode); + main_show_cpu(hardware); if (hardware->is_dmi_valid) { more_printf("System\n"); more_printf(" Manufacturer : %s\n", @@ -315,7 +315,7 @@ void main_show(char *item, struct s_hardware *hardware, return; } if (!strncmp(item, CLI_CPU, sizeof(CLI_CPU))) { - main_show_cpu(hardware, cli_mode); + main_show_cpu(hardware); return; } if (!strncmp(item, CLI_PXE, sizeof(CLI_PXE))) { diff --git a/com32/hdt/hdt-cli.h b/com32/hdt/hdt-cli.h index 023419d..2930b7c 100644 --- a/com32/hdt/hdt-cli.h +++ b/com32/hdt/hdt-cli.h @@ -106,7 +106,7 @@ void pci_show(char *item, struct s_hardware *hardware); void cli_detect_pci(struct s_hardware *hardware); // CPU STUFF -void main_show_cpu(struct s_hardware *hardware, struct s_cli_mode *cli_mode); +void main_show_cpu(struct s_hardware *hardware); void handle_cpu_commands(char *cli_line, struct s_hardware *hardware); // PXE STUFF -- 2.7.4