drm/i915: Use ERR_CAST instead of ERR_PTR(PTR_ERR())
authorWan Jiabing <wanjiabing@vivo.com>
Mon, 25 Oct 2021 11:32:50 +0000 (07:32 -0400)
committerMatthew Auld <matthew.auld@intel.com>
Mon, 25 Oct 2021 15:35:55 +0000 (16:35 +0100)
commit86752bd613c9a8deb6e7de499f0c3ac139b58b6f
tree4083f2cb092b4fc69618d3269986f5e7615f93ec
parentfc7bf4c0d65a342b29fe38c332db3fe900b481b9
drm/i915: Use ERR_CAST instead of ERR_PTR(PTR_ERR())

Fix following coccicheck warning:
./drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c:3117:15-22: WARNING:
ERR_CAST can be used with eb->requests[i].

Signed-off-by: Wan Jiabing <wanjiabing@vivo.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211025113316.24424-1-wanjiabing@vivo.com
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c