Skip to content

Commit 87a4eca

Browse files
JasonYanHwsuryasaimadhu
authored andcommitted
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 <[email protected]> Signed-off-by: Jason Yan <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 493362d commit 87a4eca

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/edac/xgene_edac.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1349,7 +1349,6 @@ static int xgene_edac_l3_remove(struct xgene_edac_dev_ctx *l3)
13491349
#define WORD_ALIGNED_ERR_MASK BIT(28)
13501350
#define PAGE_ACCESS_ERR_MASK BIT(27)
13511351
#define WRITE_ACCESS_MASK BIT(26)
1352-
#define RBERRADDR_RD(src) ((src) & 0x03FFFFFF)
13531352

13541353
static const char * const soc_mem_err_v1[] = {
13551354
"10GbE0",
@@ -1483,13 +1482,11 @@ static void xgene_edac_rb_report(struct edac_device_ctl_info *edac_dev)
14831482
return;
14841483
if (reg & STICKYERR_MASK) {
14851484
bool write;
1486-
u32 address;
14871485

14881486
dev_err(edac_dev->dev, "IOB bus access error(s)\n");
14891487
if (regmap_read(ctx->edac->rb_map, RBEIR, &reg))
14901488
return;
14911489
write = reg & WRITE_ACCESS_MASK ? 1 : 0;
1492-
address = RBERRADDR_RD(reg);
14931490
if (reg & AGENT_OFFLINE_ERR_MASK)
14941491
dev_err(edac_dev->dev,
14951492
"IOB bus %s access to offline agent error\n",

0 commit comments

Comments
 (0)