lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CADnq5_NdJ36NZbWwL4QT5ZNKX4wEbyJNB2NOaoxpMyrs8RBjHQ@mail.gmail.com>
Date:   Thu, 22 Oct 2020 00:56:31 -0400
From:   Alex Deucher <alexdeucher@...il.com>
To:     Harry Wentland <harry.wentland@....com>
Cc:     Christian König <christian.koenig@....com>,
        trix@...hat.com, "Leo (Sunpeng) Li" <sunpeng.li@....com>,
        "Deucher, Alexander" <alexander.deucher@....com>,
        Dave Airlie <airlied@...ux.ie>,
        Daniel Vetter <daniel@...ll.ch>,
        Mauro Rossi <issor.oruam@...il.com>,
        Anthony Koo <Anthony.Koo@....com>,
        "Siqueira, Rodrigo" <Rodrigo.Siqueira@....com>,
        "Cheng, Tony" <Tony.Cheng@....com>,
        Charlene Liu <Charlene.Liu@....com>,
        yogesh.mohanmarimuthu@....com, "Cyr, Aric" <Aric.Cyr@....com>,
        Igor.Kravchenko@....com, Colin Ian King <colin.king@...onical.com>,
        Tao Zhou <tao.zhou1@....com>, Dennis Li <Dennis.Li@....com>,
        Mario Kleiner <mario.kleiner.de@...il.com>,
        Maling list - DRI developers 
        <dri-devel@...ts.freedesktop.org>,
        amd-gfx list <amd-gfx@...ts.freedesktop.org>,
        LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] drm/amdgpu: remove unneeded break

Applied.  Thanks!

Alex

On Mon, Oct 19, 2020 at 11:08 AM Harry Wentland <harry.wentland@....com> wrote:
>
> On 2020-10-19 10:55 a.m., Christian König wrote:
> > Am 19.10.20 um 16:43 schrieb trix@...hat.com:
> >> From: Tom Rix <trix@...hat.com>
> >>
> >> A break is not needed if it is preceded by a return or break
> >>
> >> Signed-off-by: Tom Rix <trix@...hat.com>
> >
> > Acked-by: Christian König <christian.koenig@....com>
>
> Reviewed-by: Harry Wentland <harry.wentland@....com>
>
> Harry
>
> >
> >> ---
> >>   drivers/gpu/drm/amd/display/dc/dce/dce_transform.c      | 1 -
> >>   drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c | 7 -------
> >>   drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c | 7 -------
> >>   drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c | 7 -------
> >>   drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c | 7 -------
> >>   drivers/gpu/drm/amd/display/dc/dce60/dce60_resource.c   | 7 -------
> >>   drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c   | 7 -------
> >>   7 files changed, 43 deletions(-)
> >>
> >> diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_transform.c
> >> b/drivers/gpu/drm/amd/display/dc/dce/dce_transform.c
> >> index 2a32b66959ba..130a0a0c8332 100644
> >> --- a/drivers/gpu/drm/amd/display/dc/dce/dce_transform.c
> >> +++ b/drivers/gpu/drm/amd/display/dc/dce/dce_transform.c
> >> @@ -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,
> >> diff --git a/drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c
> >> b/drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c
> >> index d741787f75dc..42c7d157da32 100644
> >> --- a/drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c
> >> +++ b/drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c
> >> @@ -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;
> >> diff --git a/drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c
> >> b/drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c
> >> index 2bbfa2e176a9..382581c4a674 100644
> >> --- a/drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c
> >> +++ b/drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c
> >> @@ -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;
> >> diff --git a/drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c
> >> b/drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c
> >> index b622b4b1dac3..7b4b2304bbff 100644
> >> --- a/drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c
> >> +++ b/drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c
> >> @@ -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;
> >> diff --git a/drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c
> >> b/drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c
> >> index 16fe7344702f..3d782b7c86cb 100644
> >> --- a/drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c
> >> +++ b/drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c
> >> @@ -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;
> >> diff --git a/drivers/gpu/drm/amd/display/dc/dce60/dce60_resource.c
> >> b/drivers/gpu/drm/amd/display/dc/dce60/dce60_resource.c
> >> index 5a5a9cb77acb..e9dd78c484d6 100644
> >> --- a/drivers/gpu/drm/amd/display/dc/dce60/dce60_resource.c
> >> +++ b/drivers/gpu/drm/amd/display/dc/dce60/dce60_resource.c
> >> @@ -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;
> >> diff --git a/drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c
> >> b/drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c
> >> index 0eae8cd35f9a..9dbf658162cd 100644
> >> --- a/drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c
> >> +++ b/drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c
> >> @@ -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;
> >
> _______________________________________________
> amd-gfx mailing list
> amd-gfx@...ts.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ