summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c
diff options
context:
space:
mode:
authorMaíra Canal <mairacanal@riseup.net>2022-06-30 15:50:05 -0300
committerAlex Deucher <alexander.deucher@amd.com>2022-07-05 16:18:19 -0400
commiteb08accdd8d966e4027f8ba52f43faffa3e6dcbd (patch)
tree04ef1882ceb9587450b65e2a434f6c8eb2a676b4 /drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c
parentedadd6fc28b24dd5806dafc4b38633494ff423e6 (diff)
downloadlinux-stable-eb08accdd8d966e4027f8ba52f43faffa3e6dcbd.tar.gz
linux-stable-eb08accdd8d966e4027f8ba52f43faffa3e6dcbd.tar.bz2
linux-stable-eb08accdd8d966e4027f8ba52f43faffa3e6dcbd.zip
drm/amd/display: Remove return value of Calculate256BBlockSizes
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>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c b/drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c
index 95edca4c085b..d81338ddfe44 100644
--- a/drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c
+++ b/drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c
@@ -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(