]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
drm/msm: drop unused ring variable in msm_ioctl_gem_submit()
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Wed, 29 Mar 2023 00:55:29 +0000 (03:55 +0300)
committerRob Clark <robdclark@chromium.org>
Sat, 10 Jun 2023 13:46:12 +0000 (06:46 -0700)
The variable ring is not used by msm_parse_deps() and
msm_ioctl_gem_submit() and thus can be dropped.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/529340/
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/msm_gem_submit.c

index 9f5933c75e3df981177c9b38edcadab411b60d38..38aa048471a83c0be2b7f4e526106de132006c18 100644 (file)
@@ -558,8 +558,7 @@ static struct drm_syncobj **msm_parse_deps(struct msm_gem_submit *submit,
                                            struct drm_file *file,
                                            uint64_t in_syncobjs_addr,
                                            uint32_t nr_in_syncobjs,
-                                           size_t syncobj_stride,
-                                           struct msm_ringbuffer *ring)
+                                           size_t syncobj_stride)
 {
        struct drm_syncobj **syncobjs = NULL;
        struct drm_msm_gem_submit_syncobj syncobj_desc = {0};
@@ -808,7 +807,7 @@ int msm_ioctl_gem_submit(struct drm_device *dev, void *data,
                syncobjs_to_reset = msm_parse_deps(submit, file,
                                                   args->in_syncobjs,
                                                   args->nr_in_syncobjs,
-                                                  args->syncobj_stride, ring);
+                                                  args->syncobj_stride);
                if (IS_ERR(syncobjs_to_reset)) {
                        ret = PTR_ERR(syncobjs_to_reset);
                        goto out_unlock;