spi95: Fix error return code of probe_spi_st95()
Probing methods return 1 for success, 0 if nothing was found or
on error.
Change-Id: I3e6242d24e1cf5fa75100ecc56de721248dca174
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/c/flashrom-stable/+/72993
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
diff --git a/spi95.c b/spi95.c
index 976f99a..cbe347b 100644
--- a/spi95.c
+++ b/spi95.c
@@ -41,7 +41,7 @@
ret = spi_send_command(flash, rdid_outsize, sizeof(readarr), cmd, readarr);
if (ret)
- return ret;
+ return 0;
id1 = readarr[0]; // manufacture id
id2 = (readarr[1] << 8) | readarr[2]; // SPI family code + model id