Skip to content

Commit 0751736

Browse files
YueHaibingsuryasaimadhu
authored andcommitted
EDAC, i7core: Remove set but not used variable pvt
Remove the unused local variable pvt: 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> Signed-off-by: Borislav Petkov <bp@suse.de> Cc: Mauro Carvalho Chehab <mchehab@kernel.org> Cc: linux-edac <linux-edac@vger.kernel.org> Link: http://lkml.kernel.org/r/1537841043-108267-1-git-send-email-yuehaibing@huawei.com
1 parent c798c88 commit 0751736

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/edac/i7core_edac.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1815,14 +1815,12 @@ static int i7core_mce_check_error(struct notifier_block *nb, unsigned long val,
18151815
struct mce *mce = (struct mce *)data;
18161816
struct i7core_dev *i7_dev;
18171817
struct mem_ctl_info *mci;
1818-
struct i7core_pvt *pvt;
18191818

18201819
i7_dev = get_i7core_dev(mce->socketid);
18211820
if (!i7_dev)
18221821
return NOTIFY_DONE;
18231822

18241823
mci = i7_dev->mci;
1825-
pvt = mci->pvt_info;
18261824

18271825
/*
18281826
* Just let mcelog handle it if the error is

0 commit comments

Comments
 (0)