Re: [PATCH] drm/rockchip: vop2: fix uninitialized variable possible_crtcs

From: Heiko Stuebner
Date: Wed Mar 22 2023 - 16:41:06 EST


On Thu, 16 Mar 2023 09:23:02 -0400, Tom Rix wrote:
> clang reportes this error
> drivers/gpu/drm/rockchip/rockchip_drm_vop2.c:2322:8: error:
> variable 'possible_crtcs' is used uninitialized whenever 'if'
> condition is false [-Werror,-Wsometimes-uninitialized]
> if (vp) {
> ^~
> drivers/gpu/drm/rockchip/rockchip_drm_vop2.c:2336:36: note:
> uninitialized use occurs here
> ret = vop2_plane_init(vop2, win, possible_crtcs);
> ^~~~~~~~~~~~~~
> drivers/gpu/drm/rockchip/rockchip_drm_vop2.c:2322:4:
> note: remove the 'if' if its condition is always true
> if (vp) {
> ^~~~~~~~
>
> [...]

Applied, thanks!

[1/1] drm/rockchip: vop2: fix uninitialized variable possible_crtcs
commit: e88adb4ac27a37de4167150b8a6a736d40cf7018

Best regards,
--
Heiko Stuebner <heiko@xxxxxxxxx>