mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-27 23:22:37 +02:00
buspirate_spi: Fix a missing error check during _init()
Change-Id: I17c6737853bf311b3f7aa9bfb10b54ce19e95ecc Signed-off-by: Richard Hughes <richard@hughsie.com> Reviewed-on: https://review.coreboot.org/c/30407 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
parent
6eca76123c
commit
d82be7b2be
@ -507,6 +507,8 @@ int buspirate_spi_init(void)
|
|||||||
/* Enter raw SPI mode */
|
/* Enter raw SPI mode */
|
||||||
bp_commbuf[0] = 0x01;
|
bp_commbuf[0] = 0x01;
|
||||||
ret = buspirate_sendrecv(bp_commbuf, 1, 0);
|
ret = buspirate_sendrecv(bp_commbuf, 1, 0);
|
||||||
|
if (ret)
|
||||||
|
return 1;
|
||||||
if ((ret = buspirate_wait_for_string(bp_commbuf, "SPI")))
|
if ((ret = buspirate_wait_for_string(bp_commbuf, "SPI")))
|
||||||
return ret;
|
return ret;
|
||||||
if ((ret = buspirate_sendrecv(bp_commbuf, 0, 1)))
|
if ((ret = buspirate_sendrecv(bp_commbuf, 0, 1)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user