summaryrefslogtreecommitdiffstats
path: root/custom_baud.c
diff options
context:
space:
mode:
authorEdward O'Callaghan <quasisec@google.com>2022-06-17 14:43:45 +1000
committerEdward O'Callaghan <quasisec@chromium.org>2022-06-24 03:13:51 +0000
commitf56a0322f4dd67c8829df31f0ee66566dfddb4e1 (patch)
tree337eea9153a257d751685b4af6bef654fcc8194d /custom_baud.c
parent6f610a83918b9b1fe9d58578d0d9a8e51a407d6e (diff)
downloadflashrom-f56a0322f4dd67c8829df31f0ee66566dfddb4e1.tar.gz
flashrom-f56a0322f4dd67c8829df31f0ee66566dfddb4e1.tar.bz2
flashrom-f56a0322f4dd67c8829df31f0ee66566dfddb4e1.zip
ichspi.c: Simplify ich9_handle_{frap,pr}() to work with logical rep
Simplify ich9_handle_frap() to do the translation to the logical representation of the ich_access_protection enum in one place and work from there. This removes some unnecessary branch complexity and the possibility of out of bounds array accesses. Change-Id: I1eda067c44a84d662713475d13902c85534a59fe Signed-off-by: Edward O'Callaghan <quasisec@google.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/65189 Reviewed-by: Sam McNally <sammc@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nikolai Artemiev <nartemiev@google.com>
Diffstat (limited to 'custom_baud.c')
0 files changed, 0 insertions, 0 deletions