diff options
Diffstat (limited to 'drivers/ide/ide-atapi.c')
-rw-r--r-- | drivers/ide/ide-atapi.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/ide/ide-atapi.c b/drivers/ide/ide-atapi.c index bfab5c4afc6a..f17a00ccbe96 100644 --- a/drivers/ide/ide-atapi.c +++ b/drivers/ide/ide-atapi.c | |||
@@ -107,11 +107,9 @@ cmd_finished: | |||
107 | ide_dma_off(drive); | 107 | ide_dma_off(drive); |
108 | return ide_do_reset(drive); | 108 | return ide_do_reset(drive); |
109 | } | 109 | } |
110 | /* Get the number of bytes to transfer on this interrupt. */ | ||
111 | bcount = (hwif->INB(hwif->io_ports.lbah_addr) << 8) | | ||
112 | hwif->INB(hwif->io_ports.lbam_addr); | ||
113 | 110 | ||
114 | ireason = hwif->INB(hwif->io_ports.nsect_addr); | 111 | /* Get the number of bytes to transfer on this interrupt. */ |
112 | ide_read_bcount_and_ireason(drive, &bcount, &ireason); | ||
115 | 113 | ||
116 | if (ireason & CD) { | 114 | if (ireason & CD) { |
117 | printk(KERN_ERR "%s: CoD != 0 in %s\n", drive->name, __func__); | 115 | printk(KERN_ERR "%s: CoD != 0 in %s\n", drive->name, __func__); |