Commit 553ef24d authored by Vladimir Stempen's avatar Vladimir Stempen Committed by Alex Deucher

drm/amd/display: Fix typo for variable name

[why]
Word "remainder" was misspelled as "reminder" in
reduceSizeAndFraction method variable.

[how]
Fix the spelling.
Signed-off-by: default avatarVladimir Stempen <vladimir.stempen@amd.com>
Reviewed-by: default avatarAlexander Deucher <alexander.deucher@amd.com>
Reviewed-by: default avatarBindu R <Bindu.R@amd.com>
Acked-by: default avatarAnson Jacob <Anson.Jacob@amd.com>
Tested-by: default avatarDan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 45f673e6
......@@ -1893,7 +1893,7 @@ uint64_t reduceSizeAndFraction(
num = *numerator;
denom = *denominator;
for (i = 0; i < count; i++) {
uint32_t num_reminder, denom_reminder;
uint32_t num_remainder, denom_remainder;
uint64_t num_result, denom_result;
if (checkUint32Bounary &&
num <= max_int32 && denom <= max_int32) {
......@@ -1901,13 +1901,13 @@ uint64_t reduceSizeAndFraction(
break;
}
do {
num_result = div_u64_rem(num, prime_numbers[i], &num_reminder);
denom_result = div_u64_rem(denom, prime_numbers[i], &denom_reminder);
if (num_reminder == 0 && denom_reminder == 0) {
num_result = div_u64_rem(num, prime_numbers[i], &num_remainder);
denom_result = div_u64_rem(denom, prime_numbers[i], &denom_remainder);
if (num_remainder == 0 && denom_remainder == 0) {
num = num_result;
denom = denom_result;
}
} while (num_reminder == 0 && denom_reminder == 0);
} while (num_remainder == 0 && denom_remainder == 0);
}
*numerator = num;
*denominator = denom;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment