diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-06-23 05:06:06 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-23 10:43:08 -0400 |
commit | 125e18745f16685f69a34fd6130d47598fc4bf54 (patch) | |
tree | c97ed94b0525a572efa1bd4990a55b18be5d781d /drivers/ide/ide-dma.c | |
parent | 78ce89c92bc6eaf5933b5664bff64253a7103bd7 (diff) |
[PATCH] More BUG_ON conversion
Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: James Bottomley <James.Bottomley@steeleye.com>
Acked-by: "Salyzyn, Mark" <mark_salyzyn@adaptec.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
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); |