summaryrefslogtreecommitdiffstats
path: root/drivers/edac
diff options
context:
space:
mode:
authorJason Yan <yanaijie@huawei.com>2020-04-15 16:50:06 +0800
committerBorislav Petkov <bp@suse.de>2020-04-24 09:08:47 +0200
commitb2f9fb0d671f31e8af410a057eb429af3c17ec66 (patch)
tree0326c29b012c47d8f9635ee2b726df9752a57a9d /drivers/edac
parent58d66175d4615097f3832e5733c64b9a3536ccec (diff)
downloadlinux-b2f9fb0d671f31e8af410a057eb429af3c17ec66.tar.bz2
EDAC/amd8131: Remove defined but not used bridge_str
Fix the following gcc warning: drivers/edac/amd8131_edac.c:47:21: warning: ‘bridge_str’ defined but not used [-Wunused-const-variable=] static char * const bridge_str[] = { ^~~~~~~~~~ Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Jason Yan <yanaijie@huawei.com> Signed-off-by: Borislav Petkov <bp@suse.de> Reviewed-by: Robert Richter <rrichter@marvell.com> Link: https://lkml.kernel.org/r/20200415085006.6732-1-yanaijie@huawei.com
Diffstat (limited to 'drivers/edac')
-rw-r--r--drivers/edac/amd8131_edac.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/edac/amd8131_edac.c b/drivers/edac/amd8131_edac.c
index 93c82bc17493..169353710982 100644
--- a/drivers/edac/amd8131_edac.c
+++ b/drivers/edac/amd8131_edac.c
@@ -44,14 +44,6 @@ static void edac_pci_write_dword(struct pci_dev *dev, int reg, u32 val32)
" PCI Access Write Error at 0x%x\n", reg);
}
-static char * const bridge_str[] = {
- [NORTH_A] = "NORTH A",
- [NORTH_B] = "NORTH B",
- [SOUTH_A] = "SOUTH A",
- [SOUTH_B] = "SOUTH B",
- [NO_BRIDGE] = "NO BRIDGE",
-};
-
/* Support up to two AMD8131 chipsets on a platform */
static struct amd8131_dev_info amd8131_devices[] = {
{