Skip to content

Commit 927fc4a

Browse files
committed
drm/i915/gem: drop unused but set variable unpinned
Prepare for re-enabling -Wunused-but-set-variable. Signed-off-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com> Reviewed-by: Jouni Högander <jouni.hogander@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/6831c21567e8e84da424f32a8b7b48932803ab7b.1685119007.git.jani.nikula@intel.com
1 parent b334323 commit 927fc4a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,6 @@ static int eb_reserve(struct i915_execbuffer *eb)
736736
struct eb_vma *ev;
737737
unsigned int pass;
738738
int err = 0;
739-
bool unpinned;
740739

741740
/*
742741
* We have one more buffers that we couldn't bind, which could be due to
@@ -776,7 +775,7 @@ static int eb_reserve(struct i915_execbuffer *eb)
776775
pin_flags |= PIN_NONBLOCK;
777776

778777
if (pass >= 1)
779-
unpinned = eb_unbind(eb, pass >= 2);
778+
eb_unbind(eb, pass >= 2);
780779

781780
if (pass == 2) {
782781
err = mutex_lock_interruptible(&eb->context->vm->mutex);

0 commit comments

Comments
 (0)