diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-03-24 20:50:27 +0300 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2006-03-24 20:50:27 +0300 |
commit | 089fe1b23da5468bbf02b721472f71f349837a7d (patch) | |
tree | c5b385dff1ca5dc259e9ec08c0a7392947ae3818 /drivers/block/cpqarray.c | |
parent | 817dd6eed4bf40fa14d1e96ac4905efebd5e03f2 (diff) | |
download | linux-089fe1b23da5468bbf02b721472f71f349837a7d.tar.xz |
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/cpqarray.c')
-rw-r--r-- | drivers/block/cpqarray.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/block/cpqarray.c b/drivers/block/cpqarray.c index 862b9abac0ae..b6ea2f0c7276 100644 --- a/drivers/block/cpqarray.c +++ b/drivers/block/cpqarray.c @@ -906,8 +906,7 @@ queue_next: if (!creq) goto startio; - if (creq->nr_phys_segments > SG_MAX) - BUG(); + BUG_ON(creq->nr_phys_segments > SG_MAX); if ((c = cmd_alloc(h,1)) == NULL) goto startio; |