From c7cbd494eb59dbc1c7aef7b70359712bc5218d74 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Mon, 24 Aug 2020 14:37:23 -0400 Subject: [PATCH] FS#13154: Don't discard return code in storage_init() Change-Id: If84f8a2e35172be4b2ae7cd105b3975b587acd6c --- firmware/storage.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/firmware/storage.c b/firmware/storage.c index 1c7dfd7afb..267b0b8dfb 100644 --- a/firmware/storage.c +++ b/firmware/storage.c @@ -270,8 +270,9 @@ static inline void storage_thread_init(void) int storage_init(void) { -#ifdef CONFIG_STORAGE_MULTI int rc=0; + +#ifdef CONFIG_STORAGE_MULTI int i; num_drives=0; @@ -330,11 +331,11 @@ int storage_init(void) } #endif #else /* ndef CONFIG_STORAGE_MULTI */ - STORAGE_FUNCTION(init)(); + rc = STORAGE_FUNCTION(init)(); #endif /* CONFIG_STORAGE_MULTI */ storage_thread_init(); - return 0; + return rc; } int storage_read_sectors(IF_MD(int drive,) unsigned long start, int count,