replace BUG_ON(1) with BUG()

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
Ben Skeggs 2016-03-03 12:56:33 +10:00
parent 0233a9f403
commit af7db03e1b
4 changed files with 5 additions and 5 deletions

View File

@ -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;
} }

View File

@ -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;
} }

View File

@ -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)
proto = 0x0; proto = 0x0;
break; break;
default: default:
BUG_ON(1); BUG();
break; break;
} }

View File

@ -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)