]> git.baikalelectronics.ru Git - kernel.git/commit
drm/rockchip: return ERR_PTR instead of NULL
authorJulia Lawall <Julia.Lawall@lip6.fr>
Thu, 10 Nov 2016 21:10:56 +0000 (22:10 +0100)
committerMark Yao <mark.yao@rock-chips.com>
Sun, 5 Feb 2017 08:19:11 +0000 (16:19 +0800)
commit477e04702f04872eae60f9798a5ad050662aa5ad
treef189a576f9da9376ebab98fefd72caeb4500c06c
parent5434194a94b6a33950700f689ae67a149d8699b9
drm/rockchip: return ERR_PTR instead of NULL

rockchip_drm_framebuffer_init is only used in one case, in
rockchip_drm_fbdev.c, where its return value is tested using IS_ERR.  To
enable propagating the reason for the error, change the definition so that
it returns an ERR_PTR value.

Problem found with the help of Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
drivers/gpu/drm/rockchip/rockchip_drm_fb.c