Commit af7db03e authored by Ben Skeggs's avatar Ben Skeggs

replace BUG_ON(1) with BUG()

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 0233a9f4
...@@ -1041,7 +1041,7 @@ nouveau_connector_mode_valid(struct drm_connector *connector, ...@@ -1041,7 +1041,7 @@ nouveau_connector_mode_valid(struct drm_connector *connector,
clock = clock * (connector->display_info.bpc * 3) / 10; clock = clock * (connector->display_info.bpc * 3) / 10;
break; break;
default: default:
BUG_ON(1); BUG();
return MODE_BAD; return MODE_BAD;
} }
......
...@@ -103,7 +103,7 @@ usif_notify(const void *header, u32 length, const void *data, u32 size) ...@@ -103,7 +103,7 @@ usif_notify(const void *header, u32 length, const void *data, u32 size)
} }
break; break;
default: default:
BUG_ON(1); BUG();
break; break;
} }
......
...@@ -3623,7 +3623,7 @@ nv50_sor_enable(struct drm_encoder *encoder) ...@@ -3623,7 +3623,7 @@ nv50_sor_enable(struct drm_encoder *encoder)
nv50_audio_enable(encoder, mode); nv50_audio_enable(encoder, mode);
break; break;
default: default:
BUG_ON(1); BUG();
break; break;
} }
...@@ -3796,7 +3796,7 @@ nv50_pior_enable(struct drm_encoder *encoder) ...@@ -3796,7 +3796,7 @@ nv50_pior_enable(struct drm_encoder *encoder)
proto = 0x0; proto = 0x0;
break; break;
default: default:
BUG_ON(1); BUG();
break; break;
} }
......
...@@ -112,7 +112,7 @@ read_pll_src(struct nv50_clk *clk, u32 base) ...@@ -112,7 +112,7 @@ read_pll_src(struct nv50_clk *clk, u32 base)
M = (coef & 0x000000ff) >> 0; M = (coef & 0x000000ff) >> 0;
break; break;
default: default:
BUG_ON(1); BUG();
} }
if (M) if (M)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment