drm/i915: use ERR_CAST instead of ERR_PTR/PTR_ERR
authorFabian Frederick <fabf@skynet.be>
Sat, 25 Apr 2015 09:34:29 +0000 (11:34 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 8 May 2015 11:03:20 +0000 (13:03 +0200)
commit0b6cc18810cfa958985602ab1849b647250deb0f
tree0c37dadb5983e54cb1b8e55202990fddad9600d1
parent06615ee5c54740a970754b6d8d7d5e7106dec186
drm/i915: use ERR_CAST instead of ERR_PTR/PTR_ERR

Inspired by scripts/coccinelle/api/err_cast.cocci

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_drv.h