summaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-dma.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-02-01 23:09:31 +0100
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-02-01 23:09:31 +0100
commitfcc1175947510d7d7dc82d5c1b8315cb8fcb96ca (patch)
treee05d3a4cb5e9897e841cad3ff0a5459ccefb938c /drivers/ide/ide-dma.c
parentide: fix ide_intr() for non-PCI devices and CONFIG_BLK_DEV_IDEPCI=y (diff)
downloadlinux-fcc1175947510d7d7dc82d5c1b8315cb8fcb96ca.tar.xz
linux-fcc1175947510d7d7dc82d5c1b8315cb8fcb96ca.zip
ide: remove BUG_ON() from ide_build_sglist()
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>
Diffstat (limited to 'drivers/ide/ide-dma.c')
-rw-r--r--drivers/ide/ide-dma.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/ide/ide-dma.c b/drivers/ide/ide-dma.c
index 51c86bc241ac..7d361da8ceb2 100644
--- a/drivers/ide/ide-dma.c
+++ b/drivers/ide/ide-dma.c
@@ -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)