From b19d3c9f0ada46534e44308f72d7e70ab1e301ee Mon Sep 17 00:00:00 2001 From: Charles Manning Date: Fri, 19 Jun 2020 13:43:45 +1200 Subject: [PATCH] Begign bug: Fix incorrect return value The return value was not being used, but it was wrong. Signed-off-by: Charles Manning --- yaffs_tagsmarshall.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/yaffs_tagsmarshall.c b/yaffs_tagsmarshall.c index bcd6f24..d568208 100644 --- a/yaffs_tagsmarshall.c +++ b/yaffs_tagsmarshall.c @@ -172,10 +172,7 @@ static int yaffs_tags_marshall_query_block(struct yaffs_dev *dev, int block_no, "block query returns seq %d state %d", *seq_number, *state); - if (retval == 0) - return YAFFS_OK; - else - return YAFFS_FAIL; + return retval; } static int yaffs_tags_marshall_mark_bad(struct yaffs_dev *dev, int block_no) -- 2.30.2