hdt: Remove unused parameter in main_show_kernel
authorPierre-Alexandre Meyer <pierre@mouraf.org>
Sat, 14 Mar 2009 17:57:49 +0000 (10:57 -0700)
committerPierre-Alexandre Meyer <pierre@mouraf.org>
Sat, 14 Mar 2009 22:31:21 +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-kernel.c
com32/hdt/hdt-cli.c
com32/hdt/hdt-cli.h

index 189eb09..a46aae2 100644 (file)
@@ -34,7 +34,7 @@
 #include "hdt-cli.h"
 #include "hdt-common.h"
 
-void main_show_kernel(struct s_hardware *hardware, struct s_cli_mode *cli_mode)
+void main_show_kernel(struct s_hardware *hardware)
 {
   char buffer[1024];
   struct pci_device *pci_device;
index eec8053..4422e9f 100644 (file)
@@ -282,7 +282,7 @@ void main_show_summary(struct s_hardware *hardware, struct s_cli_mode *cli_mode)
   if (hardware->is_pxe_valid)
     main_show_pxe(hardware, cli_mode);
 
-  main_show_kernel(hardware, cli_mode);
+  main_show_kernel(hardware);
 }
 
 void show_main_help(struct s_hardware *hardware)
@@ -327,7 +327,7 @@ void main_show(char *item, struct s_hardware *hardware,
     return;
   }
   if (!strncmp(item, CLI_KERNEL, sizeof(CLI_KERNEL))) {
-    main_show_kernel(hardware, cli_mode);
+    main_show_kernel(hardware);
     return;
   }
 
index 6dd641a..463045d 100644 (file)
@@ -117,7 +117,7 @@ void handle_pxe_commands(char *cli_line, struct s_cli_mode *cli_mode,
                          struct s_hardware *hardware);
 
 // KERNEL STUFF
-void main_show_kernel(struct s_hardware *hardware, struct s_cli_mode *cli_mode);
+void main_show_kernel(struct s_hardware *hardware);
 void handle_kernel_commands(char *cli_line, struct s_cli_mode *cli_mode,
                             struct s_hardware *hardware);