As discusssed in the the review of [1], rework these two functions to separate single point parser and provide clean error path. Depenencies: [1], [2] [1] https://lore.kernel.org/all/20230215235048.1166484-1-robdclark@xxxxxxxxx [2] https://patchwork.freedesktop.org/patch/524090/?series=114362&rev=1 Changes since v2: - Rebased on top of [2], which is a nice cleanup Changes since v1: - Restored dumping of ring->id in trace_msm_gpu_submit (requested by Rob Clark) Dmitry Baryshkov (2): drm/msm: drop unused ring variable in msm_ioctl_gem_submit() drm/msm: simplify msm_parse_deps() and msm_parse_post_deps() drivers/gpu/drm/msm/msm_gem_submit.c | 191 +++++++++++++++------------ 1 file changed, 103 insertions(+), 88 deletions(-) -- 2.39.2