Skip to content

Commit

Permalink
ide: remove BUG_ON() from ide_build_sglist()
Browse files Browse the repository at this point in the history
do_rw_taskfile() has been fixed to check the return value
of ->dma_setup method so this BUG_ON() is no longer needed.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Feb 1, 2008
1 parent 425afb6 commit fcc1175
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/ide/ide-dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,6 @@ int ide_build_sglist(ide_drive_t *drive, struct request *rq)
ide_hwif_t *hwif = HWIF(drive);
struct scatterlist *sg = hwif->sg_table;

BUG_ON((rq->cmd_type == REQ_TYPE_ATA_TASKFILE) && rq->nr_sectors > 256);

ide_map_sg(drive, rq);

if (rq_data_dir(rq) == READ)
Expand Down

0 comments on commit fcc1175

Please sign in to comment.