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 <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Acked-by: Tony Luck <[email protected]>
Cc: James Morse <[email protected]>
Cc: [email protected]
Cc: linux-edac <[email protected]>
Cc: Mauro Carvalho Chehab <[email protected]>
Cc: Qiuxu Zhuo <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
This commit is contained in:
Colin Ian King 2019-05-08 23:42:01 +01:00 • committed by Tony Luck
commit 0042e9e7a5

View file

@ -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;
}
}