drm/amd/display: Minor code style change
authorRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Thu, 22 Sep 2022 14:08:11 +0000 (10:08 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 6 Oct 2022 16:04:36 +0000 (12:04 -0400)
This commit adds some minor code style changes just to reduce the merge
conflicts we have when we upstream some of the VBA code.

Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_32.c

index 8316b1b914c679de67ae6957d817dbfc0c1a10fd..11d5750e15afeb9347e39aae840e474ff92f21c2 100644 (file)
@@ -2476,8 +2476,6 @@ void dml32_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_l
                                        mode_lib->vba.PixelClock[k], mode_lib->vba.PixelClockBackEnd[k]);
                }
 
-               m = 0;
-
                for (k = 0; k <= mode_lib->vba.NumberOfActiveSurfaces - 1; k++) {
                        for (m = 0; m <= mode_lib->vba.NumberOfActiveSurfaces - 1; m++) {
                                for (j = 0; j <= mode_lib->vba.NumberOfActiveSurfaces - 1; j++) {
@@ -2854,8 +2852,6 @@ void dml32_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_l
                }
        }
 
-       m = 0;
-
        //Calculate Return BW
        for (i = 0; i < (int) v->soc.num_states; ++i) {
                for (j = 0; j <= 1; ++j) {
@@ -3616,11 +3612,10 @@ void dml32_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_l
                        mode_lib->vba.ModeIsSupported = mode_lib->vba.ModeSupport[i][0] == true
                                        || mode_lib->vba.ModeSupport[i][1] == true;
 
-                       if (mode_lib->vba.ModeSupport[i][0] == true) {
+                       if (mode_lib->vba.ModeSupport[i][0] == true)
                                MaximumMPCCombine = 0;
-                       } else {
+                       else
                                MaximumMPCCombine = 1;
-                       }
                }
        }