summaryrefslogtreecommitdiff
path: root/drivers/edac
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-05-08 23:42:01 +0100
committerTony Luck <tony.luck@intel.com>2019-06-20 11:44:36 -0700
commit0042e9e7a5f662d7b8226316369d02c3553d6400 (patch)
tree1ba1a7c58f116151b5dbbfec3e0f640a5cc74f34 /drivers/edac
parent109d789922f157a569f5e56cbf4a717187567543 (diff)
downloadlwn-0042e9e7a5f662d7b8226316369d02c3553d6400.tar.gz
lwn-0042e9e7a5f662d7b8226316369d02c3553d6400.zip
EDAC/sb_edac: Remove redundant update of tad_base
The variable tad_base is being set to a value that is never read and is being over-written on the next iteration of a for-loop. This assignment is therefore redundant and can be removed. Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Borislav Petkov <bp@suse.de> Acked-by: Tony Luck <tony.luck@intel.com> Cc: James Morse <james.morse@arm.com> Cc: kernel-janitors@vger.kernel.org Cc: linux-edac <linux-edac@vger.kernel.org> Cc: Mauro Carvalho Chehab <mchehab@kernel.org> Cc: Qiuxu Zhuo <qiuxu.zhuo@intel.com> Link: https://lkml.kernel.org/r/20190508224201.27120-1-colin.king@canonical.com
Diffstat (limited to 'drivers/edac')
-rw-r--r--drivers/edac/sb_edac.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/edac/sb_edac.c b/drivers/edac/sb_edac.c
index fa700a170380..37746b045e18 100644
--- a/drivers/edac/sb_edac.c
+++ b/drivers/edac/sb_edac.c
@@ -1511,7 +1511,6 @@ static int knl_get_dimm_capacity(struct sbridge_pvt *pvt, u64 *mc_sizes)
sad_actual_size[mc] += tad_size;
}
}
- tad_base = tad_limit+1;
}
}