Re: [PATCH v3 4/4] drm/mediatek: Fix dereference before null check

From: Alexandre Mergnat
Date: Wed Jun 21 2023 - 08:38:55 EST




On 21/06/2023 12:22, Jason-JH.Lin wrote:
Null-checking state suggests that it may be null, but it has already
been dereferenced on drm_atomic_get_new_plane_state(state, plane).

The parameter state will never be NULL currently, so just remove the
state is NULL flow in this function.

Reviewed-by: Alexandre Mergnat <amergnat@xxxxxxxxxxxx>

--
Regards,
Alexandre