drm: Unconditionally do the range check in drm_mm_scan_add_block()
authorChris Wilson <[email protected]>
Thu, 22 Dec 2016 08:36:31 +0000 (08:36 +0000)
committerDaniel Vetter <[email protected]>
Wed, 28 Dec 2016 10:50:28 +0000 (11:50 +0100)
commit2c4b389518fbe552188928aadcd3815d5116a05c
tree741bd09ab8f830f5a9cb984ce623f0a4595507fd
parent4a6c156f56beaaf83102c8b29baeef070c697093
drm: Unconditionally do the range check in drm_mm_scan_add_block()

Doing the check is trivial (low cost in comparison to overall eviction)
and helps simplify the code.

Signed-off-by: Chris Wilson <[email protected]>
Reviewed-by: Joonas Lahtinen <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/drm_mm.c
drivers/gpu/drm/i915/i915_gem_evict.c
include/drm/drm_mm.h