diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-08-24 14:37:23 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-08-24 14:37:23 -0400 |
commit | c7cbd494eb59dbc1c7aef7b70359712bc5218d74 (patch) | |
tree | 3df5588b3b16cc2f663c87cd06452ea91ad99d8f | |
parent | b2af6853804bec3d1f31ec66c88ff43b87203549 (diff) | |
download | rockbox-c7cbd494eb59dbc1c7aef7b70359712bc5218d74.tar.gz rockbox-c7cbd494eb59dbc1c7aef7b70359712bc5218d74.zip |
FS#13154: Don't discard return code in storage_init()
Change-Id: If84f8a2e35172be4b2ae7cd105b3975b587acd6c
-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, |