mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-26 22:52:34 +02:00
board_enable.c: Clean up board_handle_phase()
The board_enable_safetycheck() call already checks nullarity of the function pointer. Change-Id: I956961ee7204d3a6a9066ba5945f95af1411e700 Signed-off-by: Edward O'Callaghan <quasisec@google.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/73453 Reviewed-by: Thomas Heijligen <src@posteo.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
50f812cfc7
commit
e7ff5f51fe
@ -2707,12 +2707,7 @@ static int board_enable_safetycheck(const struct board_match *board, bool force_
|
||||
/* FIXME: Should this be identical to board_flash_enable? */
|
||||
static int board_handle_phase(enum board_match_phase phase, bool force_boardenable)
|
||||
{
|
||||
const struct board_match *board = NULL;
|
||||
|
||||
board = board_match_pci_ids(phase);
|
||||
|
||||
if (!board)
|
||||
return 0;
|
||||
const struct board_match *board = board_match_pci_ids(phase);
|
||||
|
||||
if (board_enable_safetycheck(board, force_boardenable))
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user