diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2024-07-07 11:48:46 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2024-07-07 12:05:18 -0400 |
commit | 181fe7530a6b45568167a0d539f6806c62338165 (patch) | |
tree | 46fa7c1a02c2a924d6b9e95e9140fd57b5230e23 /firmware/target/mips/ingenic_x1000/sd-x1000.c | |
parent | ea80d1cc9cdaf1af5e1e5a42d878f3f231a3a65b (diff) | |
download | rockbox-181fe7530a6b45568167a0d539f6806c62338165.tar.gz rockbox-181fe7530a6b45568167a0d539f6806c62338165.zip |
Fix most of the (extensive) red in ea80d1cc9ca
Change-Id: Ie494df80caa222423a52977031920d54bd058c3c
Diffstat (limited to 'firmware/target/mips/ingenic_x1000/sd-x1000.c')
-rw-r--r-- | firmware/target/mips/ingenic_x1000/sd-x1000.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/firmware/target/mips/ingenic_x1000/sd-x1000.c b/firmware/target/mips/ingenic_x1000/sd-x1000.c index 679a25a222..4312937ee8 100644 --- a/firmware/target/mips/ingenic_x1000/sd-x1000.c +++ b/firmware/target/mips/ingenic_x1000/sd-x1000.c | |||
@@ -187,6 +187,9 @@ long sd_last_disk_activity(void) | |||
187 | 187 | ||
188 | bool sd_present(IF_MD_NONVOID(int drive)) | 188 | bool sd_present(IF_MD_NONVOID(int drive)) |
189 | { | 189 | { |
190 | #ifndef HAVE_MULTIDRIVE | ||
191 | int drive = 0; | ||
192 | #endif | ||
190 | /* Seems that volume_properties() in firmware/common/disk.c may pass | 193 | /* Seems that volume_properties() in firmware/common/disk.c may pass |
191 | * drive = -1 when the SD card is not inserted, so just return false. | 194 | * drive = -1 when the SD card is not inserted, so just return false. |
192 | */ | 195 | */ |
@@ -198,6 +201,10 @@ bool sd_present(IF_MD_NONVOID(int drive)) | |||
198 | 201 | ||
199 | bool sd_removable(IF_MD_NONVOID(int drive)) | 202 | bool sd_removable(IF_MD_NONVOID(int drive)) |
200 | { | 203 | { |
204 | #ifndef HAVE_MULTIDRIVE | ||
205 | int drive = 0; | ||
206 | #endif | ||
207 | |||
201 | /* Same reason as sd_present() */ | 208 | /* Same reason as sd_present() */ |
202 | if(drive < 0) | 209 | if(drive < 0) |
203 | return false; | 210 | return false; |