diff options
Diffstat (limited to 'drivers/ide')
-rw-r--r-- | drivers/ide/ide-floppy.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/ide/ide-floppy.c b/drivers/ide/ide-floppy.c index d33717c8afd4..07fa37d84df2 100644 --- a/drivers/ide/ide-floppy.c +++ b/drivers/ide/ide-floppy.c | |||
@@ -1433,7 +1433,8 @@ static int idefloppy_get_capacity (ide_drive_t *drive) | |||
1433 | 1433 | ||
1434 | drive->bios_cyl = 0; | 1434 | drive->bios_cyl = 0; |
1435 | drive->bios_head = drive->bios_sect = 0; | 1435 | drive->bios_head = drive->bios_sect = 0; |
1436 | floppy->blocks = floppy->bs_factor = 0; | 1436 | floppy->blocks = 0; |
1437 | floppy->bs_factor = 1; | ||
1437 | set_capacity(floppy->disk, 0); | 1438 | set_capacity(floppy->disk, 0); |
1438 | 1439 | ||
1439 | idefloppy_create_read_capacity_cmd(&pc); | 1440 | idefloppy_create_read_capacity_cmd(&pc); |