diff options
author | Angel Pons <th3fanbus@gmail.com> | 2023-05-11 15:38:04 +0200 |
---|---|---|
committer | Lean Sheng Tan <sheng.tan@9elements.com> | 2023-05-12 16:19:41 +0000 |
commit | 73e6318ec7c043066a6fbbecf36b10afed245644 (patch) | |
tree | 5ad228643ba7ff7d0bbefdc915cd7a5d40f2d076 /src/vendorcode | |
parent | e0b140627607569ca36da2d8cc7eec15e970bd71 (diff) |
mb/prodrive/hermes: Simplify handling board cfg
The `get_board_settings()` function always returns non-NULL, so there is
no need for NULL checks. When only one member is accessed, also drop the
local variable and directly dereference the function's return value.
Change-Id: I4fc62ca2454f4da7c8ade506064a7b0e6ba48749
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/75140
Reviewed-by: Christian Walter <christian.walter@9elements.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com>
Diffstat (limited to 'src/vendorcode')
0 files changed, 0 insertions, 0 deletions