Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/msm: dpu: Remove checks from dpu_plane_destroy_state()

They're not needed.

Reviewed-by: Jeykumar Sankaran <jsanka@codeaurora.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>

authored by

Sean Paul and committed by
Rob Clark
84511abc aa4df9bf

+1 -12
+1 -12
drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c
··· 1191 1191 static void dpu_plane_destroy_state(struct drm_plane *plane, 1192 1192 struct drm_plane_state *state) 1193 1193 { 1194 - struct dpu_plane_state *pstate; 1195 - 1196 - if (!plane || !state) { 1197 - DPU_ERROR("invalid arg(s), plane %d state %d\n", 1198 - plane != 0, state != 0); 1199 - return; 1200 - } 1201 - 1202 - pstate = to_dpu_plane_state(state); 1203 - 1204 1194 __drm_atomic_helper_plane_destroy_state(state); 1205 - 1206 - kfree(pstate); 1195 + kfree(to_dpu_plane_state(state)); 1207 1196 } 1208 1197 1209 1198 static struct drm_plane_state *