]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd/display: remove redundant initialization of variable remainder
authorColin Ian King <colin.i.king@gmail.com>
Tue, 19 Dec 2023 14:19:30 +0000 (14:19 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 3 Jan 2024 15:30:10 +0000 (10:30 -0500)
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>
drivers/gpu/drm/amd/display/dc/basics/conversion.c

index e295a839ab4761337475e58ff0264115eded2830..1090d235086aca2f99af4c5f7f5483574b7813af 100644 (file)
@@ -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;