drm/i915: Drop the pointless linetime==0 check
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 21 Dec 2018 17:14:35 +0000 (19:14 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 30 Jan 2019 14:14:40 +0000 (16:14 +0200)
0*whatever==0 so this check is pointless. Remove it.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181221171436.8218-9-ville.syrjala@linux.intel.com
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
drivers/gpu/drm/i915/intel_pm.c

index c78674ef616f4935885e13f1359ed6f36903336d..1d1c56961b392660dbdd1c02138579978193c2c1 100644 (file)
@@ -4824,10 +4824,6 @@ skl_compute_linetime_wm(const struct intel_crtc_state *cstate)
        u32 linetime_wm;
 
        linetime_us = intel_get_linetime_us(cstate);
-
-       if (is_fixed16_zero(linetime_us))
-               return 0;
-
        linetime_wm = fixed16_to_u32_round_up(mul_u32_fixed16(8, linetime_us));
 
        /* Display WA #1135: bxt:ALL GLK:ALL */