diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2023-12-19 17:19:30 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2024-01-03 18:30:10 +0300 |
commit | 4d23c1be882ecb7fec6894a68c310fff74cc8bba (patch) | |
tree | 44342d9fe3d61974cf9ebcb1dab49cd4b7279a54 /drivers/gpu/drm/amd/display/dc/basics | |
parent | 87825c860eb8e4b80391c51ea1bb99e5cbac0025 (diff) | |
download | linux-4d23c1be882ecb7fec6894a68c310fff74cc8bba.tar.xz |
drm/amd/display: remove redundant initialization of variable remainder
Variable remainder is being initialized with a value that is never read,
the assignment is redundant and can be removed. Also add a newline
after the declaration to clean up the coding style.
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/basics')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/basics/conversion.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/basics/conversion.c b/drivers/gpu/drm/amd/display/dc/basics/conversion.c index e295a839ab47..1090d235086a 100644 --- a/drivers/gpu/drm/amd/display/dc/basics/conversion.c +++ b/drivers/gpu/drm/amd/display/dc/basics/conversion.c @@ -103,7 +103,8 @@ void convert_float_matrix( static uint32_t find_gcd(uint32_t a, uint32_t b) { - uint32_t remainder = 0; + uint32_t remainder; + while (b != 0) { remainder = a % b; a = b; |