]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/video/ffb.c
Merge branch 'drm-patches' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied...
[linux-2.6-omap-h63xx.git] / drivers / video / ffb.c
index 9c9b21d469a1e7c76c1f3eac8ffb4ae9e4b6d6bd..7633e41adda158a38688c056057fd15c91bf974d 100644 (file)
@@ -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];