hdt: Remove unused parameter in main_show_cpu
authorPierre-Alexandre Meyer <pierre@mouraf.org>
Sat, 14 Mar 2009 18:31:29 +0000 (11:31 -0700)
committerPierre-Alexandre Meyer <pierre@mouraf.org>
Sat, 14 Mar 2009 22:31:22 +0000 (15:31 -0700)
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 <pierre@mouraf.org>
com32/hdt/hdt-cli-cpu.c
com32/hdt/hdt-cli.c
com32/hdt/hdt-cli.h

index 5b00af2..cfd66ef 100644 (file)
@@ -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);
index 0fc81b3..b7014ac 100644 (file)
@@ -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))) {
index 023419d..2930b7c 100644 (file)
@@ -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