]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm: remove unneeded break
authorTom Rix <trix@redhat.com>
Mon, 19 Oct 2020 16:31:15 +0000 (09:31 -0700)
committerSam Ravnborg <sam@ravnborg.org>
Sun, 8 Nov 2020 17:59:00 +0000 (18:59 +0100)
A break is not needed if it is preceded by a return or break

Signed-off-by: Tom Rix <trix@redhat.com>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20201019163115.25814-1-trix@redhat.com
drivers/gpu/drm/mgag200/mgag200_mode.c
drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c
drivers/gpu/drm/nouveau/nvkm/subdev/clk/mcp77.c
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c
drivers/gpu/drm/nouveau/nvkm/subdev/top/gk104.c
drivers/gpu/drm/qxl/qxl_ioctl.c

index 38672f9e5c4f32085f15de370d9daed1dfc1cd2d..bbe4e60dfd088dfc896802ac40573be96e366929 100644 (file)
@@ -794,21 +794,16 @@ static int mgag200_crtc_set_plls(struct mga_device *mdev, long clock)
        case G200_SE_A:
        case G200_SE_B:
                return mga_g200se_set_plls(mdev, clock);
-               break;
        case G200_WB:
        case G200_EW3:
                return mga_g200wb_set_plls(mdev, clock);
-               break;
        case G200_EV:
                return mga_g200ev_set_plls(mdev, clock);
-               break;
        case G200_EH:
        case G200_EH3:
                return mga_g200eh_set_plls(mdev, clock);
-               break;
        case G200_ER:
                return mga_g200er_set_plls(mdev, clock);
-               break;
        }
 
        misc = RREG8(MGA_MISC_IN);
index 350f10a3de37c021b5fd360af59a6635fe46ea1a..2ec84b8a3b3ab8b6787107a58edb2833ecac03aa 100644 (file)
@@ -123,7 +123,6 @@ pll_map(struct nvkm_bios *bios)
        case NV_20:
        case NV_30:
                return nv04_pll_mapping;
-               break;
        case NV_40:
                return nv40_pll_mapping;
        case NV_50:
index efa50274df972541f5c89d3835937d7b81e2c1f2..4884eb4a9221ad23ae732912aaa32c04e05d018e 100644 (file)
@@ -140,17 +140,14 @@ mcp77_clk_read(struct nvkm_clk *base, enum nv_clk_src src)
                break;
        case nv_clk_src_mem:
                return 0;
-               break;
        case nv_clk_src_vdec:
                P = (read_div(clk) & 0x00000700) >> 8;
 
                switch (mast & 0x00400000) {
                case 0x00400000:
                        return nvkm_clk_read(&clk->base, nv_clk_src_core) >> P;
-                       break;
                default:
                        return 500000 >> P;
-                       break;
                }
                break;
        default:
index 2ccb4b6be153869668ea32afc7395655585a853c..7b1eb44ff3da238b1c8bad8402bbcf4853a09822 100644 (file)
@@ -171,7 +171,6 @@ nv50_ram_timing_read(struct nv50_ram *ram, u32 *timing)
                break;
        default:
                return -ENOSYS;
-               break;
        }
 
        T(WR) = ((timing[1] >> 24) & 0xff) - 1 - T(CWL);
index e01746ce9fc4e3361285e3408b2dbc71e9df2cb5..1156634533f9751277d3c656a827fce393a88965 100644 (file)
@@ -90,7 +90,6 @@ gk104_top_oneinit(struct nvkm_top *top)
                case 0x00000010: B_(NVDEC ); break;
                case 0x00000013: B_(CE    ); break;
                case 0x00000014: C_(GSP   ); break;
-                       break;
                default:
                        break;
                }
index 0bab9ec6adc15542d0d20e49498f15453daba6f8..16e1e589508e20a57f2e2125edb4beb99748fe84 100644 (file)
@@ -160,7 +160,6 @@ static int qxl_process_single_command(struct qxl_device *qdev,
        default:
                DRM_DEBUG("Only draw commands in execbuffers\n");
                return -EINVAL;
-               break;
        }
 
        if (cmd->command_size > PAGE_SIZE - sizeof(union qxl_release_info))