summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-08-24 14:37:23 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-08-24 14:37:23 -0400
commitc7cbd494eb59dbc1c7aef7b70359712bc5218d74 (patch)
tree3df5588b3b16cc2f663c87cd06452ea91ad99d8f
parentb2af6853804bec3d1f31ec66c88ff43b87203549 (diff)
downloadrockbox-c7cbd494eb.tar.gz
rockbox-c7cbd494eb.zip
FS#13154: Don't discard return code in storage_init()
Change-Id: If84f8a2e35172be4b2ae7cd105b3975b587acd6c
-rw-r--r--firmware/storage.c7
1 files 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,