replace BUG_ON(1) with BUG()
authorBen Skeggs <bskeggs@redhat.com>
Thu, 3 Mar 2016 02:56:33 +0000 (12:56 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 17 Feb 2017 05:14:55 +0000 (15:14 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_connector.c
drivers/gpu/drm/nouveau/nouveau_usif.c
drivers/gpu/drm/nouveau/nv50_display.c
drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv50.c

index 966d20ab4de47e428ad2fb03fdfb1bb56563343a..dc7dd2ea34488fa0f0de32e8fdc480b4008a307d 100644 (file)
@@ -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;
        }
 
index 08f9c6fa0f7f210d3e3fd5a0fbe8f11ff40b1972..58508b580f0876f822e54418a0f770c6ceec190b 100644 (file)
@@ -103,7 +103,7 @@ usif_notify(const void *header, u32 length, const void *data, u32 size)
        }
                break;
        default:
-               BUG_ON(1);
+               BUG();
                break;
        }
 
index 452da483ca014e67b2fd9167195f9fae64fff93f..db35bee75873c2f4012bc3734c077d98260df2b8 100644 (file)
@@ -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;
        }
 
index 5841f297973cd4cec732c7387a6e9db0dc6bd623..da1770e47490e7006082a1421ab72c04ab28bc62 100644 (file)
@@ -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)