mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 00:53:34 +02:00
drm/amd/display: Remove unused value set from 'min_hratio_fact' in dml
These portions of code are flagged as 'UNUSED_VALUE' by the Coverity analysis since the assigned values of these vars are never used in the code. Reviewed-by: Alex Hung <alex.hung@amd.com> Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com> Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com> Signed-off-by: Ivan Lipski <ivlipski@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
f94a97117f
commit
9e6da7b70b
|
|
@ -1156,11 +1156,6 @@ static void dml20_rq_dlg_get_dlg_params(struct display_mode_lib *mode_lib,
|
|||
swath_width_pixels_ub_c = swath_width_ub_c * 1;
|
||||
}
|
||||
|
||||
hscale_pixel_rate_l = 0.;
|
||||
hscale_pixel_rate_c = 0.;
|
||||
min_hratio_fact_l = 1.0;
|
||||
min_hratio_fact_c = 1.0;
|
||||
|
||||
if (htaps_l <= 1)
|
||||
min_hratio_fact_l = 2.0;
|
||||
else if (htaps_l <= 6) {
|
||||
|
|
|
|||
|
|
@ -1157,11 +1157,6 @@ static void dml20v2_rq_dlg_get_dlg_params(struct display_mode_lib *mode_lib,
|
|||
swath_width_pixels_ub_c = swath_width_ub_c * 1;
|
||||
}
|
||||
|
||||
hscale_pixel_rate_l = 0.;
|
||||
hscale_pixel_rate_c = 0.;
|
||||
min_hratio_fact_l = 1.0;
|
||||
min_hratio_fact_c = 1.0;
|
||||
|
||||
if (htaps_l <= 1)
|
||||
min_hratio_fact_l = 2.0;
|
||||
else if (htaps_l <= 6) {
|
||||
|
|
|
|||
|
|
@ -1205,11 +1205,6 @@ static void dml_rq_dlg_get_dlg_params(
|
|||
swath_width_pixels_ub_c = swath_width_ub_c * 1;
|
||||
}
|
||||
|
||||
hscale_pixel_rate_l = 0.;
|
||||
hscale_pixel_rate_c = 0.;
|
||||
min_hratio_fact_l = 1.0;
|
||||
min_hratio_fact_c = 1.0;
|
||||
|
||||
if (hratio_l <= 1)
|
||||
min_hratio_fact_l = 2.0;
|
||||
else if (htaps_l <= 6) {
|
||||
|
|
|
|||
|
|
@ -1309,11 +1309,6 @@ static void dml_rq_dlg_get_dlg_params(struct display_mode_lib *mode_lib,
|
|||
swath_width_pixels_ub_c = swath_width_ub_c * 1;
|
||||
}
|
||||
|
||||
hscale_pixel_rate_l = 0.;
|
||||
hscale_pixel_rate_c = 0.;
|
||||
min_hratio_fact_l = 1.0;
|
||||
min_hratio_fact_c = 1.0;
|
||||
|
||||
if (hratio_l <= 1)
|
||||
min_hratio_fact_l = 2.0;
|
||||
else if (htaps_l <= 6) {
|
||||
|
|
|
|||
|
|
@ -1150,11 +1150,6 @@ static void dml_rq_dlg_get_dlg_params(
|
|||
swath_width_pixels_ub_c = swath_width_ub_c * 1;
|
||||
}
|
||||
|
||||
hscale_pixel_rate_l = 0.;
|
||||
hscale_pixel_rate_c = 0.;
|
||||
min_hratio_fact_l = 1.0;
|
||||
min_hratio_fact_c = 1.0;
|
||||
|
||||
if (hratio_l <= 1)
|
||||
min_hratio_fact_l = 2.0;
|
||||
else if (htaps_l <= 6) {
|
||||
|
|
|
|||
|
|
@ -1238,11 +1238,6 @@ static void dml_rq_dlg_get_dlg_params(
|
|||
swath_width_pixels_ub_c = swath_width_ub_c * 1;
|
||||
}
|
||||
|
||||
hscale_pixel_rate_l = 0.;
|
||||
hscale_pixel_rate_c = 0.;
|
||||
min_hratio_fact_l = 1.0;
|
||||
min_hratio_fact_c = 1.0;
|
||||
|
||||
if (hratio_l <= 1)
|
||||
min_hratio_fact_l = 2.0;
|
||||
else if (htaps_l <= 6) {
|
||||
|
|
|
|||
|
|
@ -1596,11 +1596,6 @@ void dml1_rq_dlg_get_dlg_params(
|
|||
swath_width_pixels_ub_c = swath_width_ub_c * 1;
|
||||
}
|
||||
|
||||
hscale_pixel_rate_l = 0.;
|
||||
hscale_pixel_rate_c = 0.;
|
||||
min_hratio_fact_l = 1.0;
|
||||
min_hratio_fact_c = 1.0;
|
||||
|
||||
if (htaps_l <= 1)
|
||||
min_hratio_fact_l = 2.0;
|
||||
else if (htaps_l <= 6) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user