FS#13154: Don't discard return code in storage_init()

Change-Id: If84f8a2e35172be4b2ae7cd105b3975b587acd6c
This commit is contained in:
Solomon Peachy 2020-08-24 14:37:23 -04:00
parent b2af685380
commit c7cbd494eb

View file

@ -270,8 +270,9 @@ static inline void storage_thread_init(void)
int storage_init(void) int storage_init(void)
{ {
#ifdef CONFIG_STORAGE_MULTI
int rc=0; int rc=0;
#ifdef CONFIG_STORAGE_MULTI
int i; int i;
num_drives=0; num_drives=0;
@ -330,11 +331,11 @@ int storage_init(void)
} }
#endif #endif
#else /* ndef CONFIG_STORAGE_MULTI */ #else /* ndef CONFIG_STORAGE_MULTI */
STORAGE_FUNCTION(init)(); rc = STORAGE_FUNCTION(init)();
#endif /* CONFIG_STORAGE_MULTI */ #endif /* CONFIG_STORAGE_MULTI */
storage_thread_init(); storage_thread_init();
return 0; return rc;
} }
int storage_read_sectors(IF_MD(int drive,) unsigned long start, int count, int storage_read_sectors(IF_MD(int drive,) unsigned long start, int count,