]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Remove unnecessary null check in execlists_context_unqueue
authorMichel Thierry <michel.thierry@intel.com>
Mon, 27 Apr 2015 11:31:44 +0000 (12:31 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 27 May 2015 11:20:51 +0000 (13:20 +0200)
commit3263c6e6f3a8cf351fe3f53b73d0601ecf48bc50
treeae5791f8c19352c5af599fbacc6e5b02694204f6
parentd163e36b85fdb43b0ee5ff89d5beae6c7afe9b98
drm/i915: Remove unnecessary null check in execlists_context_unqueue

commit 140e7ae6372af45c7a08926fdd240d8c786288e7 ("drm/i915: Workaround
to avoid lite restore with HEAD==TAIL") added a check for req0 != null
which is unnecessary.

The only way req0 could be null is if the list was empty, and this is
already addressed at the beginning of execlists_context_unqueue().

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Michel Thierry <michel.thierry@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_lrc.c