diff options
Diffstat (limited to 'drivers/ide/ide-lib.c')
-rw-r--r-- | drivers/ide/ide-lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/ide-lib.c b/drivers/ide/ide-lib.c index ed426dd0fdd8..9fc4cfb2a272 100644 --- a/drivers/ide/ide-lib.c +++ b/drivers/ide/ide-lib.c | |||
@@ -317,7 +317,7 @@ static void ide_dump_sector(ide_drive_t *drive) | |||
317 | { | 317 | { |
318 | ide_task_t task; | 318 | ide_task_t task; |
319 | struct ide_taskfile *tf = &task.tf; | 319 | struct ide_taskfile *tf = &task.tf; |
320 | int lba48 = (drive->addressing == 1) ? 1 : 0; | 320 | u8 lba48 = !!(drive->dev_flags & IDE_DFLAG_LBA48); |
321 | 321 | ||
322 | memset(&task, 0, sizeof(task)); | 322 | memset(&task, 0, sizeof(task)); |
323 | if (lba48) | 323 | if (lba48) |