[PATCH 20/26] pci: aspm: remove redundant parameter in pcie_check_aspm_registers

Keng-Yu Lin kengyu at canonical.com
Wed Oct 17 07:53:25 UTC 2012


On Mon, Oct 15, 2012 at 4:32 AM, Colin King <colin.king at canonical.com> wrote:
> From: Colin Ian King <colin.king at canonical.com>
>
> Function pcie_check_aspm_registers has an unused redundant
> parameter for the log level, so remove it.
>
> Signed-off-by: Colin Ian King <colin.king at canonical.com>
> ---
>  src/pci/aspm/aspm.c |    5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/src/pci/aspm/aspm.c b/src/pci/aspm/aspm.c
> index 4211672..e6d91ca 100644
> --- a/src/pci/aspm/aspm.c
> +++ b/src/pci/aspm/aspm.c
> @@ -222,8 +222,7 @@ static void pci_device_list_free(struct pci_device *head)
>         }
>  }
>
> -static int pcie_check_aspm_registers(fwts_framework *fw,
> -       const fwts_log_level level)
> +static int pcie_check_aspm_registers(fwts_framework *fw)
>  {
>         fwts_list *lspci_output;
>         fwts_list_link *item;
> @@ -338,7 +337,7 @@ static int aspm_check_configuration(fwts_framework *fw)
>
>  static int aspm_pcie_register_configuration(fwts_framework *fw)
>  {
> -       return pcie_check_aspm_registers(fw, LOG_LEVEL_HIGH);
> +       return pcie_check_aspm_registers(fw);
>  }
>
>  static fwts_framework_minor_test aspm_tests[] = {
> --
> 1.7.10.4
>
Acked-by: Keng-Yu Lin <kengyu at canonical.com>



More information about the fwts-devel mailing list