Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 84511abc authored by Sean Paul's avatar Sean Paul Committed by Rob Clark
Browse files

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



They're not needed.

Reviewed-by: default avatarJeykumar Sankaran <jsanka@codeaurora.org>
Signed-off-by: default avatarSean Paul <seanpaul@chromium.org>
Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
parent aa4df9bf
Loading
Loading
Loading
Loading
+1 −12
Original line number Original line Diff line number Diff line
@@ -1191,19 +1191,8 @@ static void dpu_plane_destroy(struct drm_plane *plane)
static void dpu_plane_destroy_state(struct drm_plane *plane,
static void dpu_plane_destroy_state(struct drm_plane *plane,
		struct drm_plane_state *state)
		struct drm_plane_state *state)
{
{
	struct dpu_plane_state *pstate;

	if (!plane || !state) {
		DPU_ERROR("invalid arg(s), plane %d state %d\n",
				plane != 0, state != 0);
		return;
	}

	pstate = to_dpu_plane_state(state);

	__drm_atomic_helper_plane_destroy_state(state);
	__drm_atomic_helper_plane_destroy_state(state);

	kfree(to_dpu_plane_state(state));
	kfree(pstate);
}
}


static struct drm_plane_state *
static struct drm_plane_state *