]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
drm/i915: s/0/NULL/
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 12 Jul 2021 16:18:15 +0000 (19:18 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 24 Aug 2021 21:19:22 +0000 (00:19 +0300)
Use NULL where appropriate.

drivers/gpu/drm/i915/gt/intel_ring_submission.c:1210:24: warning: Using plain integer as NULL pointer

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210712161815.24776-2-ville.syrjala@linux.intel.com
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
drivers/gpu/drm/i915/gt/intel_ring_submission.c

index 2958e2fae3800e1fbd6aa55704b14e80d7ceb852..3c65efcb7bedce4d6588a701f4659058e15db7f6 100644 (file)
@@ -1265,7 +1265,7 @@ static struct i915_vma *gen7_ctx_vma(struct intel_engine_cs *engine)
        int size, err;
 
        if (GRAPHICS_VER(engine->i915) != 7 || engine->class != RENDER_CLASS)
-               return 0;
+               return NULL;
 
        err = gen7_ctx_switch_bb_setup(engine, NULL /* probe size */);
        if (err < 0)