diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-03-24 18:53:18 +0100 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2006-03-24 18:53:18 +0100 |
commit | 232443e2c90cc2930624dec89df327615b002c55 (patch) | |
tree | 8bb1fa4c9aed6e020a8ecdb7f340ee329e2815e5 /drivers/video/bw2.c | |
parent | BUG_ON() Conversion in drivers/parisc/ (diff) | |
download | linux-232443e2c90cc2930624dec89df327615b002c55.tar.xz linux-232443e2c90cc2930624dec89df327615b002c55.zip |
BUG_ON() Conversion in drivers/video/
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/video/bw2.c')
-rw-r--r-- | drivers/video/bw2.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/video/bw2.c b/drivers/video/bw2.c index c029db4646f6..6577fdfdfc16 100644 --- a/drivers/video/bw2.c +++ b/drivers/video/bw2.c @@ -327,8 +327,7 @@ static void bw2_init_one(struct sbus_dev *sdev) } else #else { - if (!sdev) - BUG(); + BUG_ON(!sdev); all->par.physbase = sdev->reg_addrs[0].phys_addr; resp = &sdev->resource[0]; sbusfb_fill_var(&all->info.var, (sdev ? sdev->prom_node : 0), 1); |