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

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
...@@ -1191,19 +1191,8 @@ static void dpu_plane_destroy(struct drm_plane *plane) ...@@ -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 *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment