projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f580bea
)
drm/i915: do not use 'false' as a NULL pointer
author
Jani Nikula
<
[email protected]
>
Thu, 15 Sep 2016 13:28:53 +0000
(16:28 +0300)
committer
Jani Nikula
<
[email protected]
>
Fri, 16 Sep 2016 07:35:16 +0000
(10:35 +0300)
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 <
[email protected]
>
Cc: Ander Conselvan de Oliveira <
[email protected]
>
Cc: Durgadoss R <
[email protected]
>
Cc: Rodrigo Vivi <
[email protected]
>
Reviewed-by: Dhinakaran Pandiyan <
[email protected]
>
Signed-off-by: Jani Nikula <
[email protected]
>
Link:
http://patchwork.freedesktop.org/patch/msgid/
[email protected]
drivers/gpu/drm/i915/intel_dpll_mgr.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/intel_dpll_mgr.c
b/drivers/gpu/drm/i915/intel_dpll_mgr.c
index 4b067accd5cdcfd987b24b2e4a8f90e111d25c2d..c26d18a574b6c54b7cfdfbd4d24b7293d5d87ed0 100644
(file)
--- 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));