Commit 14e7b034 authored by Haowen Bai's avatar Haowen Bai Committed by Dmitry Baryshkov

drm/msm/mdp5: Eliminate useless code

Since mdp5_state is initialized twice at the same time, so
we make code simple and easy to understand by delete one.
Signed-off-by: default avatarHaowen Bai <baihaowen@meizu.com>
Reviewed-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/482500/
Link: https://lore.kernel.org/r/1650348980-19050-1-git-send-email-baihaowen@meizu.comSigned-off-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
parent 03371e4f
...@@ -382,8 +382,6 @@ static int mdp5_plane_atomic_async_check(struct drm_plane *plane, ...@@ -382,8 +382,6 @@ static int mdp5_plane_atomic_async_check(struct drm_plane *plane,
if (!crtc_state->active) if (!crtc_state->active)
return -EINVAL; return -EINVAL;
mdp5_state = to_mdp5_plane_state(new_plane_state);
/* don't use fast path if we don't have a hwpipe allocated yet */ /* don't use fast path if we don't have a hwpipe allocated yet */
if (!mdp5_state->hwpipe) if (!mdp5_state->hwpipe)
return -EINVAL; return -EINVAL;
......
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