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 7d102ac0d61bf71489c463b60bc7720a55142ccd..1ef0074302c5c4eb6c52362df7f2e59e08992310 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;
                }