Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 31a46c9c authored by Ben Widawsky's avatar Ben Widawsky Committed by Daniel Vetter
Browse files

drm/i915: Rework drop caches for checkpatch



With an upcoming change to bind, to make checkpatch happy and keep the
code clean, we need to rework this code a bit.

This should have no functional impact.

Signed-off-by: default avatarBen Widawsky <ben@bwidawsk.net>
[danvet: Add the newline Chris requested.]
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent fc8c067e
Loading
Loading
Loading
Loading
+8 −6
Original line number Original line Diff line number Diff line
@@ -1784,8 +1784,10 @@ i915_drop_caches_set(void *data, u64 val)


	if (val & DROP_BOUND) {
	if (val & DROP_BOUND) {
		list_for_each_entry_safe(obj, next, &vm->inactive_list,
		list_for_each_entry_safe(obj, next, &vm->inactive_list,
					 mm_list)
					 mm_list) {
			if (obj->pin_count == 0) {
			if (obj->pin_count)
				continue;

			ret = i915_gem_object_unbind(obj);
			ret = i915_gem_object_unbind(obj);
			if (ret)
			if (ret)
				goto unlock;
				goto unlock;