Skip to contentSkip to conversation

EDAC: i7core: Remove set but not used variable 'pvt'

PATCH Applied YueHaibing 2 participants 2 messages Sep 25, 2018

Subsystems (3)
lore
Share & tools
lore

YueHaibing

author
#0 lore raw

PATCH 1/1 EDAC: i7core: Remove set but not used variable 'pvt'

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/edac/i7core_edac.c: In function 'i7core_mce_check_error':
drivers/edac/i7core_edac.c:1818:21: warning:
variable 'pvt' set but not used [-Wunused-but-set-variable]

---
 drivers/edac/i7core_edac.c | 2 --
 1 file changed, 2 deletions(-)
drivers/edac/i7core_edac.c +0 -2
index bd65f57..943aab6 100644
@@ -1815,14 +1815,12 @@ static int i7core_mce_check_error(struct notifier_block *nb, unsigned long val,
 	struct mce *mce = (struct mce *)data;
 	struct i7core_dev *i7_dev;
 	struct mem_ctl_info *mci;
-	struct i7core_pvt *pvt;
 
 	i7_dev = get_i7core_dev(mce->socketid);
 	if (!i7_dev)
 		return NOTIFY_DONE;
 
 	mci = i7_dev->mci;
-	pvt = mci->pvt_info;
 
 	/*
 	 * Just let mcelog handle it if the error is
maintainer Applied
#1 lore raw
Quoted 21 lines · YueHaibing

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/edac/i7core_edac.c: In function 'i7core_mce_check_error':
drivers/edac/i7core_edac.c:1818:21: warning:
variable 'pvt' set but not used [-Wunused-but-set-variable]

---
 drivers/edac/i7core_edac.c | 2 --
 1 file changed, 2 deletions(-)
drivers/edac/i7core_edac.c +0 -1
index bd65f57..943aab6 100644
@@ -1815,14 +1815,12 @@ static int i7core_mce_check_error(struct notifier_block *nb, unsigned long val,
 	struct mce *mce = (struct mce *)data;
 	struct i7core_dev *i7_dev;
 	struct mem_ctl_info *mci;
-	struct i7core_pvt *pvt;

drivers/edac/i7core_edac.c static int i7core_mce_check_error(struct notifier_block *nb, unsigned long val, · line 1826

Quoted 10 lines
drivers/edac/i7core_edac.c +0 -1
 
 	i7_dev = get_i7core_dev(mce->socketid);
 	if (!i7_dev)
 		return NOTIFY_DONE;
 
 	mci = i7_dev->mci;
-	pvt = mci->pvt_info;
 
 	/*
 	 * Just let mcelog handle it if the error is

Applied, thanks.

Signature · 4 lines
Regards/Gruss,
    Boris.

Good mailing practices for 400: avoid top-posting and trim the reply.