summaryrefslogtreecommitdiff
path: root/firmware/target/mips/ingenic_x1000/sd-x1000.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/mips/ingenic_x1000/sd-x1000.c')
-rw-r--r--firmware/target/mips/ingenic_x1000/sd-x1000.c7
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
188bool sd_present(IF_MD_NONVOID(int drive)) 188bool 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
199bool sd_removable(IF_MD_NONVOID(int drive)) 202bool 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;