From: Pierre-Alexandre Meyer Date: Sat, 14 Mar 2009 17:57:49 +0000 (-0700) Subject: hdt: Remove unused parameter in main_show_kernel X-Git-Tag: syslinux-3.74-pre12~73 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b317006b7ba39366d13a6afaf2295400f4aad680;p=platform%2Fupstream%2Fsyslinux.git hdt: Remove unused parameter in main_show_kernel 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 --- diff --git a/com32/hdt/hdt-cli-kernel.c b/com32/hdt/hdt-cli-kernel.c index 189eb09..a46aae2 100644 --- a/com32/hdt/hdt-cli-kernel.c +++ b/com32/hdt/hdt-cli-kernel.c @@ -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; diff --git a/com32/hdt/hdt-cli.c b/com32/hdt/hdt-cli.c index eec8053..4422e9f 100644 --- a/com32/hdt/hdt-cli.c +++ b/com32/hdt/hdt-cli.c @@ -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; } diff --git a/com32/hdt/hdt-cli.h b/com32/hdt/hdt-cli.h index 6dd641a..463045d 100644 --- a/com32/hdt/hdt-cli.h +++ b/com32/hdt/hdt-cli.h @@ -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);