freedreno/drm: fix unused 'entry' warnings
authorRob Clark <robdclark@gmail.com>
Sun, 11 Nov 2018 15:41:52 +0000 (10:41 -0500)
committerRob Clark <robdclark@gmail.com>
Mon, 12 Nov 2018 15:45:48 +0000 (10:45 -0500)
Looks like importing libdrm_freedreno into mesa crossed paths with
e27902a2613.

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/drm/msm_ringbuffer.c

index f1e967402312abf30081e91b22b9faa572c5786d..673ef436e25964e760a49715de1bb60e1e80f4d9 100644 (file)
@@ -311,7 +311,6 @@ msm_submit_flush(struct fd_submit *submit, int in_fence_fd,
        finalize_current_cmd(msm_submit->primary);
        append_ring(msm_submit->ring_set, msm_submit->primary);
 
-       struct set_entry *entry;
        unsigned nr_cmds = 0;
        unsigned nr_objs = 0;
 
@@ -578,7 +577,6 @@ append_stateobj_rings(struct msm_submit *submit, struct fd_ringbuffer *target)
 
        debug_assert(target->flags & _FD_RINGBUFFER_OBJECT);
 
-       struct set_entry *entry;
        set_foreach(msm_target->u.ring_set, entry) {
                struct fd_ringbuffer *ring = (void *)entry->key;