diff options
author | Anastasia Klimchuk <aklm@chromium.org> | 2021-08-27 15:47:46 +1000 |
---|---|---|
committer | Edward O'Callaghan <quasisec@chromium.org> | 2021-08-30 02:43:20 +0000 |
commit | 099e3785126437abafb4f4784f05ae469deb2d1d (patch) | |
tree | 36049a66ce0b7011da5852f6cf48b9e7c0d167b7 /satamv.c | |
parent | 31b283bd21ea1f0e9fc99f2ee17dfce64b3938e2 (diff) | |
download | flashrom-099e3785126437abafb4f4784f05ae469deb2d1d.tar.gz flashrom-099e3785126437abafb4f4784f05ae469deb2d1d.tar.bz2 flashrom-099e3785126437abafb4f4784f05ae469deb2d1d.zip |
par_master: Fix propagation of register_par_master() return values
This patch checks return value of register_par_master()
so that in case of an error this error is not ignored anymore.
BUG=b:185191942
TEST=builds and ninja test
Change-Id: I377afae41708c7433a56615e2f096bce9c5349f1
Signed-off-by: Anastasia Klimchuk <aklm@chromium.org>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/57192
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'satamv.c')
-rw-r--r-- | satamv.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -179,9 +179,7 @@ static int satamv_init(void) /* 512 kByte with two 8-bit latches, and * 4 MByte with additional 3-bit latch. */ max_rom_decode.parallel = 4 * 1024 * 1024; - register_par_master(&par_master_satamv, BUS_PARALLEL, NULL); - - return 0; + return register_par_master(&par_master_satamv, BUS_PARALLEL, NULL); } const struct programmer_entry programmer_satamv = { |