diff options
Diffstat (limited to 'drivers/ide/ide-dma.c')
-rw-r--r-- | drivers/ide/ide-dma.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/ide/ide-dma.c b/drivers/ide/ide-dma.c index c481be8b807f..783a2475ee8b 100644 --- a/drivers/ide/ide-dma.c +++ b/drivers/ide/ide-dma.c | |||
@@ -206,8 +206,7 @@ int ide_build_sglist(ide_drive_t *drive, struct request *rq) | |||
206 | ide_hwif_t *hwif = HWIF(drive); | 206 | ide_hwif_t *hwif = HWIF(drive); |
207 | struct scatterlist *sg = hwif->sg_table; | 207 | struct scatterlist *sg = hwif->sg_table; |
208 | 208 | ||
209 | if ((rq->flags & REQ_DRIVE_TASKFILE) && rq->nr_sectors > 256) | 209 | BUG_ON((rq->flags & REQ_DRIVE_TASKFILE) && rq->nr_sectors > 256); |
210 | BUG(); | ||
211 | 210 | ||
212 | ide_map_sg(drive, rq); | 211 | ide_map_sg(drive, rq); |
213 | 212 | ||
@@ -947,8 +946,7 @@ void ide_setup_dma (ide_hwif_t *hwif, unsigned long dma_base, unsigned int num_p | |||
947 | } | 946 | } |
948 | printk("\n"); | 947 | printk("\n"); |
949 | 948 | ||
950 | if (!(hwif->dma_master)) | 949 | BUG_ON(!hwif->dma_master); |
951 | BUG(); | ||
952 | } | 950 | } |
953 | 951 | ||
954 | EXPORT_SYMBOL_GPL(ide_setup_dma); | 952 | EXPORT_SYMBOL_GPL(ide_setup_dma); |