mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-16 07:56:49 +07:00
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>
This commit is contained in:
parent
aa4df9bf28
commit
84511abc47
@ -1191,19 +1191,8 @@ static void dpu_plane_destroy(struct drm_plane *plane)
|
||||
static void dpu_plane_destroy_state(struct drm_plane *plane,
|
||||
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);
|
||||
|
||||
kfree(pstate);
|
||||
kfree(to_dpu_plane_state(state));
|
||||
}
|
||||
|
||||
static struct drm_plane_state *
|
||||
|
Loading…
Reference in New Issue
Block a user