drm/amdgpu: remove unneeded break
authorTom Rix <trix@redhat.com>
Mon, 19 Oct 2020 14:43:11 +0000 (07:43 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 23 Oct 2020 19:33:47 +0000 (15:33 -0400)
A break is not needed if it is preceded by a return or break

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce/dce_transform.c
drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c
drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c
drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c
drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c
drivers/gpu/drm/amd/display/dc/dce60/dce60_resource.c
drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c

index 2a32b66959ba29377d0ae31444915d6f29e0ec25..130a0a0c8332918de5ce9541cad2cf4ca2537604 100644 (file)
@@ -1330,7 +1330,6 @@ static bool configure_graphics_mode(
                        REG_SET(OUTPUT_CSC_CONTROL, 0,
                                OUTPUT_CSC_GRPH_MODE, 0);
                        break;
-                       break;
                case COLOR_SPACE_SRGB_LIMITED:
                        /* TV RGB */
                        REG_SET(OUTPUT_CSC_CONTROL, 0,
index d741787f75dcb5e1505f7b8988b5656d1e608842..42c7d157da322fcb2a4e593faf52daca2714dac7 100644 (file)
@@ -418,25 +418,18 @@ static int map_transmitter_id_to_phy_instance(
        switch (transmitter) {
        case TRANSMITTER_UNIPHY_A:
                return 0;
-       break;
        case TRANSMITTER_UNIPHY_B:
                return 1;
-       break;
        case TRANSMITTER_UNIPHY_C:
                return 2;
-       break;
        case TRANSMITTER_UNIPHY_D:
                return 3;
-       break;
        case TRANSMITTER_UNIPHY_E:
                return 4;
-       break;
        case TRANSMITTER_UNIPHY_F:
                return 5;
-       break;
        case TRANSMITTER_UNIPHY_G:
                return 6;
-       break;
        default:
                ASSERT(0);
                return 0;
index 2bbfa2e176a9fbe4a6d074501aa8723a8b057ee4..382581c4a674a5dc6a6940317442fe730cb99c77 100644 (file)
@@ -471,25 +471,18 @@ static int map_transmitter_id_to_phy_instance(
        switch (transmitter) {
        case TRANSMITTER_UNIPHY_A:
                return 0;
-       break;
        case TRANSMITTER_UNIPHY_B:
                return 1;
-       break;
        case TRANSMITTER_UNIPHY_C:
                return 2;
-       break;
        case TRANSMITTER_UNIPHY_D:
                return 3;
-       break;
        case TRANSMITTER_UNIPHY_E:
                return 4;
-       break;
        case TRANSMITTER_UNIPHY_F:
                return 5;
-       break;
        case TRANSMITTER_UNIPHY_G:
                return 6;
-       break;
        default:
                ASSERT(0);
                return 0;
index b622b4b1dac3d432118e9b34bc62366c26ff097d..7b4b2304bbfff4c0c7fe03bdc0c22b166a5a0804 100644 (file)
@@ -446,25 +446,18 @@ static int map_transmitter_id_to_phy_instance(
        switch (transmitter) {
        case TRANSMITTER_UNIPHY_A:
                return 0;
-       break;
        case TRANSMITTER_UNIPHY_B:
                return 1;
-       break;
        case TRANSMITTER_UNIPHY_C:
                return 2;
-       break;
        case TRANSMITTER_UNIPHY_D:
                return 3;
-       break;
        case TRANSMITTER_UNIPHY_E:
                return 4;
-       break;
        case TRANSMITTER_UNIPHY_F:
                return 5;
-       break;
        case TRANSMITTER_UNIPHY_G:
                return 6;
-       break;
        default:
                ASSERT(0);
                return 0;
index 16fe7344702f4ab3e11ce47d907bd938dea12ead..3d782b7c86cba5a052343bc066d5362a7759598c 100644 (file)
@@ -383,25 +383,18 @@ static int map_transmitter_id_to_phy_instance(
        switch (transmitter) {
        case TRANSMITTER_UNIPHY_A:
                return 0;
-       break;
        case TRANSMITTER_UNIPHY_B:
                return 1;
-       break;
        case TRANSMITTER_UNIPHY_C:
                return 2;
-       break;
        case TRANSMITTER_UNIPHY_D:
                return 3;
-       break;
        case TRANSMITTER_UNIPHY_E:
                return 4;
-       break;
        case TRANSMITTER_UNIPHY_F:
                return 5;
-       break;
        case TRANSMITTER_UNIPHY_G:
                return 6;
-       break;
        default:
                ASSERT(0);
                return 0;
index 5a5a9cb77acbf33771084438898eebcd84375f89..e9dd78c484d6e5fa6cfcbedcce73c6a9908b55de 100644 (file)
@@ -453,25 +453,18 @@ static int map_transmitter_id_to_phy_instance(
        switch (transmitter) {
        case TRANSMITTER_UNIPHY_A:
                return 0;
-       break;
        case TRANSMITTER_UNIPHY_B:
                return 1;
-       break;
        case TRANSMITTER_UNIPHY_C:
                return 2;
-       break;
        case TRANSMITTER_UNIPHY_D:
                return 3;
-       break;
        case TRANSMITTER_UNIPHY_E:
                return 4;
-       break;
        case TRANSMITTER_UNIPHY_F:
                return 5;
-       break;
        case TRANSMITTER_UNIPHY_G:
                return 6;
-       break;
        default:
                ASSERT(0);
                return 0;
index 0eae8cd35f9a138a2456f4248fe5200b2a70f05a..9dbf658162cd95e17f6290e16c0680e103751542 100644 (file)
@@ -458,25 +458,18 @@ static int map_transmitter_id_to_phy_instance(
        switch (transmitter) {
        case TRANSMITTER_UNIPHY_A:
                return 0;
-       break;
        case TRANSMITTER_UNIPHY_B:
                return 1;
-       break;
        case TRANSMITTER_UNIPHY_C:
                return 2;
-       break;
        case TRANSMITTER_UNIPHY_D:
                return 3;
-       break;
        case TRANSMITTER_UNIPHY_E:
                return 4;
-       break;
        case TRANSMITTER_UNIPHY_F:
                return 5;
-       break;
        case TRANSMITTER_UNIPHY_G:
                return 6;
-       break;
        default:
                ASSERT(0);
                return 0;