diff options
author | Angel Pons <th3fanbus@gmail.com> | 2022-11-02 19:01:34 +0100 |
---|---|---|
committer | Felix Singer <service+coreboot-gerrit@felixsinger.de> | 2024-04-11 18:17:33 +0000 |
commit | 4c333a6b4607db65b93020a892c5e770fbb65828 (patch) | |
tree | ffd40eced5dd243efd25d8d6cdbc104e98dca7d6 /src/mainboard/prodrive | |
parent | 5eecafe89ea34f035dc310b89e6f77c5e55e1b64 (diff) |
soc/intel/**/fast_spi.c: Reorganize some statements
Avoid calling `acpi_device_scope()` and `fast_spi_acpi_hid()` if the
result won't be used. Also, reorder a condition so that compile-time
constants appear first, so as to help the compiler optimize it out.
Change-Id: I42ce55c2978ad9c593c359c5decd5842fb3a97a1
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/69168
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de>
Diffstat (limited to 'src/mainboard/prodrive')
0 files changed, 0 insertions, 0 deletions