mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 16:44:58 +02:00
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
This commit is contained in:
parent
b3343230ce
commit
927fc4a015
|
|
@ -736,7 +736,6 @@ static int eb_reserve(struct i915_execbuffer *eb)
|
|||
struct eb_vma *ev;
|
||||
unsigned int pass;
|
||||
int err = 0;
|
||||
bool unpinned;
|
||||
|
||||
/*
|
||||
* 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)
|
|||
pin_flags |= PIN_NONBLOCK;
|
||||
|
||||
if (pass >= 1)
|
||||
unpinned = eb_unbind(eb, pass >= 2);
|
||||
eb_unbind(eb, pass >= 2);
|
||||
|
||||
if (pass == 2) {
|
||||
err = mutex_lock_interruptible(&eb->context->vm->mutex);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user