nb/intel/sandybridge: Refactor `dram_find_spds_ddr3`
commit323c0aeb6421396e31ab08e2e70bc486b3decde5
authorAngel Pons <th3fanbus@gmail.com>
Sat, 12 Dec 2020 15:57:37 +0000 (12 16:57 +0100)
committerFelix Held <felix-coreboot@felixheld.de>
Wed, 23 Dec 2020 16:14:45 +0000 (23 16:14 +0000)
treebb7e523c7c4d068125dc62ab2a56bb5b6673fd82
parent9f4ed3b5504e564c44f14dce0bab0f9bc92779b6
nb/intel/sandybridge: Refactor `dram_find_spds_ddr3`

Pointers to structs can be very useful, especially when they point to an
array element. In this case, changing one pointer allows the function to
be rewritten more concisely, since most redundancy can be eliminated.

Tested on Asus P8Z77-V LX2, still boots. No functional difference.

Change-Id: I7f0c37ea49db640f197162f371165a6f8e9c1b9c
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/48612
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
src/northbridge/intel/sandybridge/raminit.c