diff options
author | Rudolf Marek <r.marek@assembler.cz> | 2013-05-04 00:08:34 +0200 |
---|---|---|
committer | Bruce Griffith <Bruce.Griffith@se-eng.com> | 2013-05-30 18:04:52 +0200 |
commit | d3ed411123c9655c6013cb8ed8d3d91cc2dc8c62 (patch) | |
tree | 4da1dd2eba418dfe54cac42649102660f9315082 /src/mainboard/amd/rumba | |
parent | 1a71f4c21f86fe058da9dee3be1d9db5448fe1b7 (diff) | |
download | coreboot-d3ed411123c9655c6013cb8ed8d3d91cc2dc8c62.tar.xz |
AMD Trinity boards: Use `sizeof(var)` to get its size
Change `sizeof(type) * n`, where n is the number of array
elements, to `sizeof(variable)` to directly get the size of the
variable (struct, array). Determining the size by counting array
elements is error prone and unnecessary.
Not sure why the copy is needed instead of direct reference.
Maybe it has something to do with CAR?
These changes are based on Rudolf’s original patch »ASUS F2A85-M:
Correct and clean up PCIe config« [1], where it was just done for
the ASUS board.
[1] http://review.coreboot.org/#/c/3194/
Change-Id: I4aa4c6cde5a27b7f335a71afc21d1603f2ae814b
Signed-off-by: Rudolf Marek <r.marek@assembler.cz>
Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-on: http://review.coreboot.org/3247
Tested-by: build bot (Jenkins)
Reviewed-by: David Hubbard <david.c.hubbard+coreboot@gmail.com>
Reviewed-by: Bruce Griffith <Bruce.Griffith@se-eng.com>
Diffstat (limited to 'src/mainboard/amd/rumba')
0 files changed, 0 insertions, 0 deletions