diff options
author | Edward O'Callaghan <quasisec@google.com> | 2022-06-17 14:43:45 +1000 |
---|---|---|
committer | Edward O'Callaghan <quasisec@chromium.org> | 2022-06-24 03:13:51 +0000 |
commit | f56a0322f4dd67c8829df31f0ee66566dfddb4e1 (patch) | |
tree | 337eea9153a257d751685b4af6bef654fcc8194d /util/flashrom_tester/src/tester.rs | |
parent | 6f610a83918b9b1fe9d58578d0d9a8e51a407d6e (diff) | |
download | flashrom-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 'util/flashrom_tester/src/tester.rs')
0 files changed, 0 insertions, 0 deletions