diff options
author | Fred Reitberger <reitbergerfred@gmail.com> | 2023-03-23 14:35:39 -0400 |
---|---|---|
committer | Lean Sheng Tan <sheng.tan@9elements.com> | 2023-03-26 21:02:35 +0000 |
commit | 3b5d9ee516adb42a57557a8712761ad94633a276 (patch) | |
tree | c4824806814ec27b9477228c935a1ce6c55796c3 /tests/mock | |
parent | 13ed70f10be413f317126dc5f0b3b541eeacc116 (diff) |
drivers/spi/spi_flash.c: Prefer 'if' over '#if"
Change preprocessor #if to a regular if and let the compiler optimize
away the unused branch.
Signed-off-by: Fred Reitberger <reitbergerfred@gmail.com>
Change-Id: I7af747812a448064ac6b38686b8bd616a755932e
Reviewed-on: https://review.coreboot.org/c/coreboot/+/73970
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Reviewed-by: Felix Singer <felixsinger@posteo.net>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Martin L Roth <gaumless@gmail.com>
Diffstat (limited to 'tests/mock')
0 files changed, 0 insertions, 0 deletions