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>
This commit is contained in:
Colin Ian King
2023-12-19 14:19:30 +00:00
committed by Alex Deucher
parent 87825c860e
commit 4d23c1be88
@@ -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;