From 099e3785126437abafb4f4784f05ae469deb2d1d Mon Sep 17 00:00:00 2001 From: Anastasia Klimchuk Date: Fri, 27 Aug 2021 15:47:46 +1000 Subject: 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 Reviewed-on: https://review.coreboot.org/c/flashrom/+/57192 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons Reviewed-by: Nico Huber --- atahpt.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'atahpt.c') diff --git a/atahpt.c b/atahpt.c index 0da39e0d..c627e0b7 100644 --- a/atahpt.c +++ b/atahpt.c @@ -85,9 +85,7 @@ static int atahpt_init(void) reg32 |= (1 << 24); rpci_write_long(dev, REG_FLASH_ACCESS, reg32); - register_par_master(&par_master_atahpt, BUS_PARALLEL, NULL); - - return 0; + return register_par_master(&par_master_atahpt, BUS_PARALLEL, NULL); } const struct programmer_entry programmer_atahpt = { -- cgit v1.2.3