diff options
Diffstat (limited to 'drivers/ide/ide-disk.c')
-rw-r--r-- | drivers/ide/ide-disk.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/ide/ide-disk.c b/drivers/ide/ide-disk.c index 6a1de2169709..695181120cdb 100644 --- a/drivers/ide/ide-disk.c +++ b/drivers/ide/ide-disk.c | |||
@@ -184,14 +184,7 @@ static ide_startstop_t ide_do_rw_disk(ide_drive_t *drive, struct request *rq, | |||
184 | ide_hwif_t *hwif = drive->hwif; | 184 | ide_hwif_t *hwif = drive->hwif; |
185 | 185 | ||
186 | BUG_ON(drive->dev_flags & IDE_DFLAG_BLOCKED); | 186 | BUG_ON(drive->dev_flags & IDE_DFLAG_BLOCKED); |
187 | 187 | BUG_ON(!blk_fs_request(rq)); | |
188 | if (!blk_fs_request(rq)) { | ||
189 | blk_dump_rq_flags(rq, "ide_do_rw_disk - bad command"); | ||
190 | if (rq->errors == 0) | ||
191 | rq->errors = -EIO; | ||
192 | ide_complete_rq(drive, -EIO, ide_rq_bytes(rq)); | ||
193 | return ide_stopped; | ||
194 | } | ||
195 | 188 | ||
196 | ledtrig_ide_activity(); | 189 | ledtrig_ide_activity(); |
197 | 190 | ||