]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Be explicit in ERR_PTR handling
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 20 Nov 2019 09:33:01 +0000 (09:33 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 20 Nov 2019 10:37:43 +0000 (10:37 +0000)
commit3ccd33e78c2fd428f8ff17e95408e1ff765d2766
tree2d8653a69aff6239fbf4e7efc5987daad1dbb527
parente0cf143e33c651aa4f7ac497f82a21cc89d5c1c9
drm/i915/selftests: Be explicit in ERR_PTR handling

When setting up a full GGTT, we expect the next insert to fail with
-ENOSPC. Simplify the use of ERR_PTR to not confuse either the reader or
smatch.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
References: f4c03515ab80 ("drm/i915: Initial selftests for exercising eviction")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191120093302.3723715-8-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/i915_gem_evict.c