disk: fix sector multiplier init, also remove a test which has became obsolete
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31356 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
676708c43f
commit
ba2740a5b8
1 changed files with 2 additions and 3 deletions
|
@ -61,7 +61,7 @@ static int vol_drive[NUM_VOLUMES]; /* mounted to which drive (-1 if none) */
|
||||||
static struct mutex disk_mutex;
|
static struct mutex disk_mutex;
|
||||||
|
|
||||||
#ifdef MAX_LOG_SECTOR_SIZE
|
#ifdef MAX_LOG_SECTOR_SIZE
|
||||||
static int disk_sector_multiplier[NUM_DRIVES] = {1};
|
static int disk_sector_multiplier[NUM_DRIVES] = {[0 ... NUM_DRIVES-1] = 1};
|
||||||
|
|
||||||
int disk_get_sector_multiplier(IF_MD_NONVOID(int drive))
|
int disk_get_sector_multiplier(IF_MD_NONVOID(int drive))
|
||||||
{
|
{
|
||||||
|
@ -217,8 +217,7 @@ int disk_mount(int drive)
|
||||||
mounted++;
|
mounted++;
|
||||||
vol_drive[volume] = drive; /* remember the drive for this volume */
|
vol_drive[volume] = drive; /* remember the drive for this volume */
|
||||||
volume = get_free_volume(); /* prepare next entry */
|
volume = get_free_volume(); /* prepare next entry */
|
||||||
if (drive == 0)
|
disk_sector_multiplier[drive] = j;
|
||||||
disk_sector_multiplier[drive] = j;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue