Linux EDAC development
 help / color / mirror / Atom feed
From: Borislav Petkov <bp@alien8.de>
To: YueHaibing <yuehaibing@huawei.com>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>,
	linux-edac@vger.kernel.org, kernel-janitors@vger.kernel.org
Subject: [-next] EDAC: i7core: Remove set but not used variable 'pvt'
Date: Tue, 25 Sep 2018 12:11:54 +0200	[thread overview]
Message-ID: <20180925101154.GB23986@zn.tnic> (raw)

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.

             reply	other threads:[~2018-09-25 10:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-25 10:11 Borislav Petkov [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-09-25  2:04 [-next] EDAC: i7core: Remove set but not used variable 'pvt' YueHaibing

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180925101154.GB23986@zn.tnic \
    --to=bp@alien8.de \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=linux-edac@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=yuehaibing@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox