drm/i915: Fix error code in icl_compute_combo_phy_dpll()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 24 Jun 2022 06:39:24 +0000 (09:39 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 28 Jun 2022 10:18:44 +0000 (13:18 +0300)
This function is supposed to return zero or negative error codes but it
accidentally returns true on failure.

Fixes: 92a020747d6c ("drm/i915: Split shared dpll .get_dplls() into compute and get phases")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/YrVcHArNMTGCSy+9@kili
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
drivers/gpu/drm/i915/display/intel_dpll_mgr.c

index ddae7e4..118598c 100644 (file)
@@ -3184,7 +3184,7 @@ static int icl_compute_combo_phy_dpll(struct intel_atomic_state *state,
        struct icl_port_dpll *port_dpll =
                &crtc_state->icl_port_dplls[ICL_PORT_DPLL_DEFAULT];
        struct skl_wrpll_params pll_params = {};
-       bool ret;
+       int ret;
 
        if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI) ||
            intel_crtc_has_type(crtc_state, INTEL_OUTPUT_DSI))