mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-04 04:02:26 +00:00
EDAC/xgene: Remove set but not used address local var
Fix the following gcc warning: drivers/edac/xgene_edac.c:1486:7: warning: variable ‘address’ set but not used [-Wunused-but-set-variable] u32 address; ^~~~~~~ Remove the unused macro RBERRADDR_RD while at it. Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Jason Yan <yanaijie@huawei.com> Signed-off-by: Borislav Petkov <bp@suse.de> Link: https://lkml.kernel.org/r/20200409093259.20069-1-yanaijie@huawei.com
This commit is contained in:
parent
493362dd7b
commit
87a4eca891
@ -1349,7 +1349,6 @@ static int xgene_edac_l3_remove(struct xgene_edac_dev_ctx *l3)
|
||||
#define WORD_ALIGNED_ERR_MASK BIT(28)
|
||||
#define PAGE_ACCESS_ERR_MASK BIT(27)
|
||||
#define WRITE_ACCESS_MASK BIT(26)
|
||||
#define RBERRADDR_RD(src) ((src) & 0x03FFFFFF)
|
||||
|
||||
static const char * const soc_mem_err_v1[] = {
|
||||
"10GbE0",
|
||||
@ -1483,13 +1482,11 @@ static void xgene_edac_rb_report(struct edac_device_ctl_info *edac_dev)
|
||||
return;
|
||||
if (reg & STICKYERR_MASK) {
|
||||
bool write;
|
||||
u32 address;
|
||||
|
||||
dev_err(edac_dev->dev, "IOB bus access error(s)\n");
|
||||
if (regmap_read(ctx->edac->rb_map, RBEIR, ®))
|
||||
return;
|
||||
write = reg & WRITE_ACCESS_MASK ? 1 : 0;
|
||||
address = RBERRADDR_RD(reg);
|
||||
if (reg & AGENT_OFFLINE_ERR_MASK)
|
||||
dev_err(edac_dev->dev,
|
||||
"IOB bus %s access to offline agent error\n",
|
||||
|
Loading…
Reference in New Issue
Block a user