linux-stable/drivers/net/ethernet/apm
Nathan Chancellor 7a2b525868 drivers: net: xgene: Remove unnecessary forward declarations
[ Upstream commit 2ab4c3426c ]

Clang warns:

drivers/net/ethernet/apm/xgene/xgene_enet_main.c:33:36: warning:
tentative array definition assumed to have one element
static const struct acpi_device_id xgene_enet_acpi_match[];
                                   ^
1 warning generated.

Both xgene_enet_acpi_match and xgene_enet_of_match are defined before
their uses at the bottom of the file so this is unnecessary. When
CONFIG_ACPI is disabled, ACPI_PTR becomes NULL so xgene_enet_acpi_match
doesn't need to be defined.

Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-01-13 09:51:00 +01:00
..
xgene drivers: net: xgene: Remove unnecessary forward declarations 2019-01-13 09:51:00 +01:00
xgene-v2 net: Remove depends on HAS_DMA in case of platform dependency 2018-06-23 10:44:30 +09:00
Kconfig drivers: net: xgene-v2: Add transmit and receive 2017-03-09 13:25:04 -08:00
Makefile drivers: net: xgene-v2: Add transmit and receive 2017-03-09 13:25:04 -08:00