drm/i915/selftests: fix a couple IS_ERR() vs NULL tests
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 8 Jul 2022 09:41:04 +0000 (12:41 +0300)
committerMatthew Auld <matthew.auld@intel.com>
Mon, 11 Jul 2022 09:14:51 +0000 (10:14 +0100)
commitd50f5a109cf4ed50c5b575c1bb5fc3bd17b23308
tree8db44dd75c70ed8880f49409cbb1e1abc3a69df0
parent7835303982d11ed700ce6bc530303272bfa8562f
drm/i915/selftests: fix a couple IS_ERR() vs NULL tests

The shmem_pin_map() function doesn't return error pointers, it returns
NULL.

Fixes: be1cb55a07bf ("drm/i915/gt: Keep a no-frills swappable copy of the default context state")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.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/20220708094104.GL2316@kadam
drivers/gpu/drm/i915/gt/selftest_lrc.c