Commit 927fc4a0 authored by Jani Nikula's avatar Jani Nikula

drm/i915/gem: drop unused but set variable unpinned

Prepare for re-enabling -Wunused-but-set-variable.
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Reviewed-by: default avatarAndi Shyti <andi.shyti@linux.intel.com>
Reviewed-by: default avatarJouni Högander <jouni.hogander@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/6831c21567e8e84da424f32a8b7b48932803ab7b.1685119007.git.jani.nikula@intel.com
parent b3343230
...@@ -736,7 +736,6 @@ static int eb_reserve(struct i915_execbuffer *eb) ...@@ -736,7 +736,6 @@ static int eb_reserve(struct i915_execbuffer *eb)
struct eb_vma *ev; struct eb_vma *ev;
unsigned int pass; unsigned int pass;
int err = 0; int err = 0;
bool unpinned;
/* /*
* We have one more buffers that we couldn't bind, which could be due to * 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) ...@@ -776,7 +775,7 @@ static int eb_reserve(struct i915_execbuffer *eb)
pin_flags |= PIN_NONBLOCK; pin_flags |= PIN_NONBLOCK;
if (pass >= 1) if (pass >= 1)
unpinned = eb_unbind(eb, pass >= 2); eb_unbind(eb, pass >= 2);
if (pass == 2) { if (pass == 2) {
err = mutex_lock_interruptible(&eb->context->vm->mutex); err = mutex_lock_interruptible(&eb->context->vm->mutex);
......
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