summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
270 270
271int storage_init(void) 271int storage_init(void)
272{ 272{
273#ifdef CONFIG_STORAGE_MULTI
274 int rc=0; 273 int rc=0;
274
275#ifdef CONFIG_STORAGE_MULTI
275 int i; 276 int i;
276 num_drives=0; 277 num_drives=0;
277 278
@@ -330,11 +331,11 @@ int storage_init(void)
330 } 331 }
331#endif 332#endif
332#else /* ndef CONFIG_STORAGE_MULTI */ 333#else /* ndef CONFIG_STORAGE_MULTI */
333 STORAGE_FUNCTION(init)(); 334 rc = STORAGE_FUNCTION(init)();
334#endif /* CONFIG_STORAGE_MULTI */ 335#endif /* CONFIG_STORAGE_MULTI */
335 336
336 storage_thread_init(); 337 storage_thread_init();
337 return 0; 338 return rc;
338} 339}
339 340
340int storage_read_sectors(IF_MD(int drive,) unsigned long start, int count, 341int storage_read_sectors(IF_MD(int drive,) unsigned long start, int count,