drm/i915/selftests: Fix plain use of integer 0 as NULL
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 5 Apr 2019 11:14:30 +0000 (12:14 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 5 Apr 2019 12:28:43 +0000 (13:28 +0100)
Quelch a sparse warning:
drivers/gpu/drm/i915/gt/selftest_lrc.c:119:54: warning: Using plain integer as NULL pointer

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Matthew Auld <matthew.william.auld@gmail.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190405111430.18495-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/intel_lrc.c

index 8bcd4e1d58eebfd1087ae18e78d15d8d56e56896..fbee030db940157c5d5a9218905f0557f44fa9d8 100644 (file)
@@ -118,7 +118,7 @@ static int live_busywait_preempt(void *arg)
                goto err_obj;
        }
 
-       vma = i915_vma_instance(obj, &i915->ggtt.vm, 0);
+       vma = i915_vma_instance(obj, &i915->ggtt.vm, NULL);
        if (IS_ERR(vma)) {
                err = PTR_ERR(vma);
                goto err_map;