drivers: net: xgene: Remove acpi_has_method() calls
authorKelsey Skunberg <skunberg.kelsey@gmail.com>
Wed, 24 Jul 2019 06:06:59 +0000 (00:06 -0600)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Jul 2019 18:29:33 +0000 (11:29 -0700)
commit570d785ba46b947e0ded0c38955c43d1d7867c12
tree14ade83a64fe02e42e4b51d7ba2a353a38cfdb71
parent3e3bb69589e482e0783f28d4cd1d8e56fda0bcbb
drivers: net: xgene: Remove acpi_has_method() calls

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@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/apm/xgene/xgene_enet_hw.c
drivers/net/ethernet/apm/xgene/xgene_enet_sgmac.c
drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c