forked from Minki/linux
replace BUG_ON(1) with BUG()
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
0233a9f403
commit
af7db03e1b
@ -1041,7 +1041,7 @@ nouveau_connector_mode_valid(struct drm_connector *connector,
|
||||
clock = clock * (connector->display_info.bpc * 3) / 10;
|
||||
break;
|
||||
default:
|
||||
BUG_ON(1);
|
||||
BUG();
|
||||
return MODE_BAD;
|
||||
}
|
||||
|
||||
|
@ -103,7 +103,7 @@ usif_notify(const void *header, u32 length, const void *data, u32 size)
|
||||
}
|
||||
break;
|
||||
default:
|
||||
BUG_ON(1);
|
||||
BUG();
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -3623,7 +3623,7 @@ nv50_sor_enable(struct drm_encoder *encoder)
|
||||
nv50_audio_enable(encoder, mode);
|
||||
break;
|
||||
default:
|
||||
BUG_ON(1);
|
||||
BUG();
|
||||
break;
|
||||
}
|
||||
|
||||
@ -3796,7 +3796,7 @@ nv50_pior_enable(struct drm_encoder *encoder)
|
||||
proto = 0x0;
|
||||
break;
|
||||
default:
|
||||
BUG_ON(1);
|
||||
BUG();
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -112,7 +112,7 @@ read_pll_src(struct nv50_clk *clk, u32 base)
|
||||
M = (coef & 0x000000ff) >> 0;
|
||||
break;
|
||||
default:
|
||||
BUG_ON(1);
|
||||
BUG();
|
||||
}
|
||||
|
||||
if (M)
|
||||
|
Loading…
Reference in New Issue
Block a user