drm/i915/gem: Remove some unnecessary code
authorThomas Hellström <thomas.hellstrom@linux.intel.com>
Fri, 4 Mar 2022 08:26:41 +0000 (09:26 +0100)
committerThomas Hellström <thomas.hellstrom@linux.intel.com>
Mon, 7 Mar 2022 07:51:18 +0000 (08:51 +0100)
commiteb950819218af113b57cd5cd3441af4077a9baaf
tree0c959bb2e4ba63106467de5f40f8909400503a89
parentd93939730347360db0afe6a4367451b6f84ab7b1
drm/i915/gem: Remove some unnecessary code

The test for vma should always return true, and when assigning -EBUSY
to ret, the variable should already have that value.

Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220304082641.308069-4-thomas.hellstrom@linux.intel.com
drivers/gpu/drm/i915/i915_gem.c