drm/i915: checking for NULL instead of IS_ERR() in mock selftests
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 13 Apr 2017 19:52:17 +0000 (22:52 +0300)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 13 Apr 2017 20:26:56 +0000 (21:26 +0100)
commitbe02f7556447a0dee672acb5e462f03377b98ae8
tree284beea4ed2a43fc37ba8df3b3c67f381d9eda4a
parent9301397a63b3bf1090dffe846c6f1c8efa032236
drm/i915: checking for NULL instead of IS_ERR() in mock selftests

i915_gem_request_alloc() uses error pointers.  It never returns NULLs.

Fixes: 0daf0113cff6 ("drm/i915: Mock infrastructure for request emission")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170413195217.GA26108@mwanda
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/selftests/mock_request.c