mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-07 04:09:21 +00:00
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>
This commit is contained in:
parent
b74945547f
commit
232443e2c9
2 changed files with 2 additions and 4 deletions
|
@ -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);
|
||||
|
|
|
@ -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];
|
||||
|
||||
|
|
Loading…
Reference in a new issue