diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-03-24 12:50:27 -0500 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2006-03-24 12:50:27 -0500 |
commit | 089fe1b23da5468bbf02b721472f71f349837a7d (patch) | |
tree | c5b385dff1ca5dc259e9ec08c0a7392947ae3818 /drivers/block/DAC960.c | |
parent | 817dd6eed4bf40fa14d1e96ac4905efebd5e03f2 (diff) |
BUG_ON() Conversion in drivers/block/
this changes if() BUG(); constructs to BUG_ON() which is
cleaner, contains unlikely() and can better optimized away.
Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Diffstat (limited to 'drivers/block/DAC960.c')
-rw-r--r-- | drivers/block/DAC960.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/block/DAC960.c b/drivers/block/DAC960.c index 37b8cda3e8bc..9bdea2a5cf0e 100644 --- a/drivers/block/DAC960.c +++ b/drivers/block/DAC960.c | |||
@@ -228,8 +228,7 @@ static void *slice_dma_loaf(struct dma_loaf *loaf, size_t len, | |||
228 | void *cpu_end = loaf->cpu_free + len; | 228 | void *cpu_end = loaf->cpu_free + len; |
229 | void *cpu_addr = loaf->cpu_free; | 229 | void *cpu_addr = loaf->cpu_free; |
230 | 230 | ||
231 | if (cpu_end > loaf->cpu_base + loaf->length) | 231 | BUG_ON(cpu_end > loaf->cpu_base + loaf->length); |
232 | BUG(); | ||
233 | *dma_handle = loaf->dma_free; | 232 | *dma_handle = loaf->dma_free; |
234 | loaf->cpu_free = cpu_end; | 233 | loaf->cpu_free = cpu_end; |
235 | loaf->dma_free += len; | 234 | loaf->dma_free += len; |