summaryrefslogtreecommitdiffstats
path: root/drivers/video/ffb.c
diff options
context:
space:
mode:
authorEric Sesterhenn <snakebyte@gmx.de>2006-03-24 18:53:18 +0100
committerAdrian Bunk <bunk@stusta.de>2006-03-24 18:53:18 +0100
commit232443e2c90cc2930624dec89df327615b002c55 (patch)
tree8bb1fa4c9aed6e020a8ecdb7f340ee329e2815e5 /drivers/video/ffb.c
parentb74945547f0679003ede4d1afcd0aa169059a436 (diff)
downloadlinux-232443e2c90cc2930624dec89df327615b002c55.tar.bz2
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/ffb.c')
-rw-r--r--drivers/video/ffb.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/video/ffb.c b/drivers/video/ffb.c
index 9c9b21d469a1..7633e41adda1 100644
--- a/drivers/video/ffb.c
+++ b/drivers/video/ffb.c
@@ -466,8 +466,7 @@ static void ffb_fillrect(struct fb_info *info, const struct fb_fillrect *rect)
unsigned long flags;
u32 fg;
- if (rect->rop != ROP_COPY && rect->rop != ROP_XOR)
- BUG();
+ BUG_ON(rect->rop != ROP_COPY && rect->rop != ROP_XOR);
fg = ((u32 *)info->pseudo_palette)[rect->color];