diff options
Diffstat (limited to 'firmware/common/disk.c')
-rw-r--r-- | firmware/common/disk.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/firmware/common/disk.c b/firmware/common/disk.c index cb35a8d7b0..9fb73f0070 100644 --- a/firmware/common/disk.c +++ b/firmware/common/disk.c | |||
@@ -137,7 +137,6 @@ static int get_free_volume(void) | |||
137 | 137 | ||
138 | int disk_mount(int drive) | 138 | int disk_mount(int drive) |
139 | { | 139 | { |
140 | int i; | ||
141 | int mounted = 0; /* reset partition-on-drive flag */ | 140 | int mounted = 0; /* reset partition-on-drive flag */ |
142 | int volume = get_free_volume(); | 141 | int volume = get_free_volume(); |
143 | struct partinfo* pinfo = disk_init(IF_MV(drive)); | 142 | struct partinfo* pinfo = disk_init(IF_MV(drive)); |
@@ -146,14 +145,14 @@ int disk_mount(int drive) | |||
146 | { | 145 | { |
147 | return 0; | 146 | return 0; |
148 | } | 147 | } |
149 | #ifndef ELIO_TPJ1022 | 148 | #if !defined(ELIO_TPJ1022) && !defined(MROBE_100) |
150 | /* The Elio's hard drive has no partition table and probing for partitions causes | 149 | /* The Elio's hard drive has no partition table and probing for partitions causes |
151 | Rockbox to crash - so we temporarily disable the probing until we fix the | 150 | Rockbox to crash - so we temporarily disable the probing until we fix the |
152 | real problem. */ | 151 | real problem. */ |
153 | #ifdef TOSHIBA_GIGABEAT_S | 152 | #ifdef TOSHIBA_GIGABEAT_S |
154 | i = 1; /* For the Gigabeat S, we mount the second partition */ | 153 | int i = 1; /* For the Gigabeat S, we mount the second partition */ |
155 | #else | 154 | #else |
156 | i = 0; | 155 | int i = 0; |
157 | #endif | 156 | #endif |
158 | for (; volume != -1 && i<4; i++) | 157 | for (; volume != -1 && i<4; i++) |
159 | { | 158 | { |