[Freedreno] [PATCH v2] drm/msm: remove unnecessary NULL check

Uwe Kleine-König u.kleine-koenig at pengutronix.de
Fri Oct 13 09:54:36 UTC 2023


On Fri, Oct 13, 2023 at 11:25:15AM +0300, Dan Carpenter wrote:
> This NULL check was required when it was added, but we shuffled the code
> around and now it's not.  The inconsistent NULL checking triggers a
> Smatch warning:
> 
>     drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c:847 mdp5_init() warn:
>     variable dereferenced before check 'mdp5_kms' (see line 782)
> 
> Fixes: 1f50db2f3e1e ("drm/msm/mdp5: move resource allocation to the _probe function"
> Signed-off-by: Dan Carpenter <dan.carpenter at linaro.org>

Reviewed-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>

(already provided for (implicit) v1, but wasn't picked up)

Thanks
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | https://www.pengutronix.de/ |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/freedreno/attachments/20231013/4246b394/attachment.sig>


More information about the Freedreno mailing list