linux-edac.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [-next] EDAC: i7core: Remove set but not used variable 'pvt'
@ 2018-09-25  2:04 YueHaibing
  0 siblings, 0 replies; 2+ messages in thread
From: YueHaibing @ 2018-09-25  2:04 UTC (permalink / raw)
  To: Mauro Carvalho Chehab, Borislav Petkov
  Cc: YueHaibing, linux-edac, kernel-janitors

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]

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/edac/i7core_edac.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/edac/i7core_edac.c b/drivers/edac/i7core_edac.c
index bd65f57..943aab6 100644
--- a/drivers/edac/i7core_edac.c
+++ b/drivers/edac/i7core_edac.c
@@ -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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [-next] EDAC: i7core: Remove set but not used variable 'pvt'
@ 2018-09-25 10:11 Borislav Petkov
  0 siblings, 0 replies; 2+ messages in thread
From: Borislav Petkov @ 2018-09-25 10:11 UTC (permalink / raw)
  To: YueHaibing; +Cc: Mauro Carvalho Chehab, linux-edac, kernel-janitors

On Tue, Sep 25, 2018 at 02:04:03AM +0000, YueHaibing wrote:
> 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]
> 
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>
> ---
>  drivers/edac/i7core_edac.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/drivers/edac/i7core_edac.c b/drivers/edac/i7core_edac.c
> index bd65f57..943aab6 100644
> --- a/drivers/edac/i7core_edac.c
> +++ b/drivers/edac/i7core_edac.c
> @@ -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
> 

Applied, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-09-25 10:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-25  2:04 [-next] EDAC: i7core: Remove set but not used variable 'pvt' YueHaibing
2018-09-25 10:11 Borislav Petkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).