]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Drop check for non-NULL entry in llist_for_each_entry_safe
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 30 May 2019 08:23:58 +0000 (09:23 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 31 May 2019 08:00:49 +0000 (09:00 +0100)
commitb227c5ac32545ddf8c978a2890389bad6f574475
treee53270eded367facd97e4f04673b1b84672421d2
parent8b8e7d64f3dac230b890005fa2fb088413f9c180
drm/i915: Drop check for non-NULL entry in llist_for_each_entry_safe

Since the next entry is an offset from a pointer, it can not be NULL.
For simplicity, drop the extra conditional before calling cond_resched()

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190530082358.13663-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_object.c