Re: [PATCH v2] drivers: net: xgene: Remove acpi_has_method() calls

From: David Miller
Date: Tue Jul 23 2019 - 17:06:49 EST


From: Kelsey Skunberg <skunberg.kelsey@xxxxxxxxx>
Date: Tue, 23 Jul 2019 12:58:11 -0600

> acpi_evaluate_object will already return an error if the needed method
> does not exist. Remove unnecessary acpi_has_method() calls and check the
> returned acpi_status for failure instead.
>
> Signed-off-by: Kelsey Skunberg <skunberg.kelsey@xxxxxxxxx>
> ---
> Changes in v2:
> - Fixed white space warnings and errors

Applied to net-next.