]> git.baikalelectronics.ru Git - kernel.git/commit
drivers: net: xgene: Move status variable declaration into CONFIG_ACPI block
authorNathan Chancellor <natechancellor@gmail.com>
Fri, 26 Jul 2019 16:20:37 +0000 (09:20 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 27 Jul 2019 21:17:55 +0000 (14:17 -0700)
commit6ec6d68b44bc0d1bf488ad61196a1f387d743c37
tree28c329d22972c5380f5951c1e60edc2b26d873f5
parentc70cd41b2bcdabea6b246c6fdc339567966c85b9
drivers: net: xgene: Move status variable declaration into CONFIG_ACPI block

When CONFIG_ACPI is unset (arm allyesconfig), status is unused.

drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c:383:14: warning:
unused variable 'status' [-Wunused-variable]
        acpi_status status;
                    ^
drivers/net/ethernet/apm/xgene/xgene_enet_sgmac.c:440:14: warning:
unused variable 'status' [-Wunused-variable]
        acpi_status status;
                    ^
drivers/net/ethernet/apm/xgene/xgene_enet_hw.c:697:14: warning: unused
variable 'status' [-Wunused-variable]
        acpi_status status;
                    ^

Move the declaration into the CONFIG_ACPI block so that there are no
compiler warnings.

Fixes: 5a3f0aec4421 ("drivers: net: xgene: Remove acpi_has_method() calls")
Signed-off-by: Nathan Chancellor <natechancellor@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