mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 15:12:13 +02:00
drm/amd/display: Fix mismatch type comparison
The mismatch type comparison/assignment may cause data loss. Since the values are always non-negative, it is safe to use unsigned variables to resolve the mismatch. Signed-off-by: Navid Assadian <navid.assadian@amd.com> Reviewed-by: Joshua Aberback <joshua.aberback@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
fba4d19f37
commit
26873260d3
|
|
@ -944,8 +944,8 @@ static bool spl_get_optimal_number_of_taps(
|
|||
bool *enable_isharp)
|
||||
{
|
||||
int num_part_y, num_part_c;
|
||||
int max_taps_y, max_taps_c;
|
||||
int min_taps_y, min_taps_c;
|
||||
unsigned int max_taps_y, max_taps_c;
|
||||
unsigned int min_taps_y, min_taps_c;
|
||||
enum lb_memory_config lb_config;
|
||||
bool skip_easf = false;
|
||||
bool is_subsampled = spl_is_subsampled_format(spl_in->basic_in.format);
|
||||
|
|
|
|||
|
|
@ -493,7 +493,7 @@ struct spl_sharpness_range {
|
|||
};
|
||||
struct adaptive_sharpness {
|
||||
bool enable;
|
||||
int sharpness_level;
|
||||
unsigned int sharpness_level;
|
||||
struct spl_sharpness_range sharpness_range;
|
||||
};
|
||||
enum linear_light_scaling { // convert it in translation logic
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user