diff options
author | Angel Pons <th3fanbus@gmail.com> | 2021-01-03 14:55:12 +0100 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2021-01-04 23:07:59 +0000 |
commit | 86e3d748f8bd6e3253490ad6c236c84ab871f703 (patch) | |
tree | 1281f64b0d5560567f14f3232c907f973041d8a6 | |
parent | 30b12e905f18b19754850f5219ee70e3a30ca5c8 (diff) |
nb/intel/sandybridge: Replace memset with initializer
There's no need to use `memset` here.
Change-Id: I0478bc3ff25b75bf0b554aa83ead6a63fcbd975c
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/49064
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
-rw-r--r-- | src/northbridge/intel/sandybridge/raminit_common.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/northbridge/intel/sandybridge/raminit_common.c b/src/northbridge/intel/sandybridge/raminit_common.c index 3c60a9f5d0..61663b8cae 100644 --- a/src/northbridge/intel/sandybridge/raminit_common.c +++ b/src/northbridge/intel/sandybridge/raminit_common.c @@ -1137,11 +1137,9 @@ static void find_rcven_pi_coarse(ramctr_timing *ctrl, int channel, int slotrank, static void fine_tune_rcven_pi(ramctr_timing *ctrl, int channel, int slotrank, int *upperA) { int rcven_delta; - int statistics[NUM_LANES][51]; + int statistics[NUM_LANES][51] = {0}; int lane, i; - memset(statistics, 0, sizeof(statistics)); - for (rcven_delta = -25; rcven_delta <= 25; rcven_delta++) { FOR_ALL_LANES { |