soc/amd/common/espi_util: clarify espi_open_io_window
Calling espi_open_generic_io_window in espi_open_io_window depends on the condition in the preceding if statement, so move the command into an else block to make it more obvious that this is the case. TEST=Timeless build results in identical image. Change-Id: I3039817afd79c30a2df2f2f54e7848f52dc2c487 Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/44353 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
This commit is contained in:
parent
3999aa6cdb
commit
b026c7c65a
|
@ -183,9 +183,9 @@ int espi_open_io_window(uint16_t base, size_t size)
|
|||
if (std_io != -1) {
|
||||
espi_enable_decode(std_io);
|
||||
return 0;
|
||||
} else {
|
||||
return espi_open_generic_io_window(base, size);
|
||||
}
|
||||
|
||||
return espi_open_generic_io_window(base, size);
|
||||
}
|
||||
|
||||
static int espi_find_mmio_window(uint32_t win_base)
|
||||
|
|
Loading…
Reference in New Issue