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:
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;
|
||||
|
||||
Reference in New Issue
Block a user