diff options
-rw-r--r-- | firmware/storage.c | 7 |
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 | ||
271 | int storage_init(void) | 271 | int 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 | ||
340 | int storage_read_sectors(IF_MD(int drive,) unsigned long start, int count, | 341 | int storage_read_sectors(IF_MD(int drive,) unsigned long start, int count, |