[Freedreno] [PATCH 2/2] drm/msm: dpu: Remove checks from dpu_plane_destroy_state()
Jeykumar Sankaran
jsanka at codeaurora.org
Tue Oct 9 18:43:54 UTC 2018
On 2018-10-04 11:09, Sean Paul wrote:
> From: Sean Paul <seanpaul at chromium.org>
>
> They're not needed.
>
> Signed-off-by: Sean Paul <seanpaul at chromium.org>
> ---
Reviewed-by: Jeykumar Sankaran <jsanka at codeaurora.org>
> drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c | 13 +------------
> 1 file changed, 1 insertion(+), 12 deletions(-)
>
> diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c
> b/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c
> index f549daf30fe6..4213e7a8e525 100644
> --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c
> +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c
> @@ -1193,19 +1193,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 *
--
Jeykumar S
More information about the Freedreno
mailing list