From: Jani Nikula Date: Thu, 15 Sep 2016 13:28:53 +0000 (+0300) Subject: drm/i915: do not use 'false' as a NULL pointer X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bcbfcc37cdd4fd7564a6657d5d6bd4719079900b;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drm/i915: do not use 'false' as a NULL pointer Fixes sparse warning: drivers/gpu/drm/i915/intel_dpll_mgr.c:1712:24: warning: Using plain integer as NULL pointer Fixes: a277ca7dc01d ("drm/i915: Split bxt_ddi_pll_select()") Cc: Manasi Navare Cc: Ander Conselvan de Oliveira Cc: Durgadoss R Cc: Rodrigo Vivi Reviewed-by: Dhinakaran Pandiyan Signed-off-by: Jani Nikula Link: http://patchwork.freedesktop.org/patch/msgid/1473946137-1931-2-git-send-email-jani.nikula@intel.com --- diff --git a/drivers/gpu/drm/i915/intel_dpll_mgr.c b/drivers/gpu/drm/i915/intel_dpll_mgr.c index 4b067accd5cd..c26d18a574b6 100644 --- a/drivers/gpu/drm/i915/intel_dpll_mgr.c +++ b/drivers/gpu/drm/i915/intel_dpll_mgr.c @@ -1709,12 +1709,12 @@ bxt_get_dpll(struct intel_crtc *crtc, if (encoder->type == INTEL_OUTPUT_HDMI && !bxt_ddi_hdmi_pll_dividers(crtc, crtc_state, clock, &clk_div)) - return false; + return NULL; if ((encoder->type == INTEL_OUTPUT_DP || encoder->type == INTEL_OUTPUT_EDP) && !bxt_ddi_dp_set_dpll_hw_state(clock, &dpll_hw_state)) - return false; + return NULL; memset(&crtc_state->dpll_hw_state, 0, sizeof(crtc_state->dpll_hw_state));