drm/amd/display: Remove return value of Calculate256BBlockSizes
authorMaíra Canal <mairacanal@riseup.net>
Thu, 30 Jun 2022 18:50:05 +0000 (15:50 -0300)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 5 Jul 2022 20:18:19 +0000 (16:18 -0400)
The function Calculate256BBlockSizes always returns true, regardless of
the parameters. As any file checks the return of the function, this
commit changes the return value to void.

Signed-off-by: Maíra Canal <mairacanal@riseup.net>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c
drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.h

index 95edca4..d81338d 100644 (file)
@@ -958,7 +958,7 @@ static void recalculate_params(
        }
 }
 
-bool Calculate256BBlockSizes(
+void Calculate256BBlockSizes(
                enum source_format_class SourcePixelFormat,
                enum dm_swizzle_mode SurfaceTiling,
                unsigned int BytePerPixelY,
@@ -996,7 +996,6 @@ bool Calculate256BBlockSizes(
                *BlockWidth256BytesY = 256 / BytePerPixelY / *BlockHeight256BytesY;
                *BlockWidth256BytesC = 256 / BytePerPixelC / *BlockHeight256BytesC;
        }
-       return true;
 }
 
 bool CalculateMinAndMaxPrefetchMode(
index 10ff536..25a9a60 100644 (file)
@@ -169,7 +169,7 @@ bool get_is_phantom_pipe(struct display_mode_lib *mode_lib,
                unsigned int pipe_idx);
 void PixelClockAdjustmentForProgressiveToInterlaceUnit(struct display_mode_lib *mode_lib);
 
-bool Calculate256BBlockSizes(
+void Calculate256BBlockSizes(
                enum source_format_class SourcePixelFormat,
                enum dm_swizzle_mode SurfaceTiling,
                unsigned int BytePerPixelY,