]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
drivers: net: xgene: Remove unnecessary forward declarations
authorNathan Chancellor <natechancellor@gmail.com>
Tue, 11 Dec 2018 04:20:30 +0000 (21:20 -0700)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commit51a34d25cdc4b304fe963193ca0dbcefd0cca410
treededafa86a970ad9103bf5e14541556277beb1b82
parentec1ec65df1a4f7184b41845cbcc11b181951e2f3
drivers: net: xgene: Remove unnecessary forward declarations

BugLink: https://bugs.launchpad.net/bugs/1837477
[ Upstream commit 2ab4c3426c0cf711d7147e3f559638e4ab88960e ]

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>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/ethernet/apm/xgene/xgene_enet_main.c