drm/amdgpu/display: fix compiler errors [-Werror,-Wparentheses-equality]
authorPratik Vishwakarma <Pratik.Vishwakarma@amd.com>
Mon, 31 Dec 2018 08:12:53 +0000 (13:42 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Feb 2019 18:29:19 +0000 (13:29 -0500)
Remove extraneous parentheses around the comparison
to silence this warning

Signed-off-by: Pratik Vishwakarma <Pratik.Vishwakarma@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c

index 7d102ac..1ef0074 100644 (file)
@@ -63,7 +63,7 @@ void scaler_settings_calculation(struct dcn_bw_internal_vars *v)
                if (v->interlace_output[k] == 1.0) {
                        v->v_ratio[k] = 2.0 * v->v_ratio[k];
                }
-               if ((v->underscan_output[k] == 1.0)) {
+               if (v->underscan_output[k] == 1.0) {
                        v->h_ratio[k] = v->h_ratio[k] * v->under_scan_factor;
                        v->v_ratio[k] = v->v_ratio[k] * v->under_scan_factor;
                }