]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915/gem: Return NULL instead of '0'
authorAndi Shyti <andi.shyti@linux.intel.com>
Mon, 17 Jun 2024 18:42:42 +0000 (20:42 +0200)
committerAndi Shyti <andi.shyti@linux.intel.com>
Thu, 20 Jun 2024 06:19:21 +0000 (08:19 +0200)
commit3bece98b9eb6941b4708237a4557a5082df25589
tree0486be6c512015f36e64319800f2be1ef0e8242b
parent24bb052d3dd499c5956abad5f7d8e4fd07da7fb1
drm/i915/gem: Return NULL instead of '0'

Commit 05da7d9f717b ("drm/i915/gem: Downgrade stolen lmem setup
warning") returns '0' from i915_gem_stolen_lmem_setup(), but it's
supposed to return a pointer to the intel_memory_region
structure.

Sparse complains with the following message:

>> drivers/gpu/drm/i915/gem/i915_gem_stolen.c:943:32: sparse: sparse:
   Using plain integer as NULL pointer

Return NULL.

Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
Cc: Jonathan Cavitt <jonathan.cavitt@intel.com>
Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240617184243.330231-2-andi.shyti@linux.intel.com
drivers/gpu/drm/i915/gem/i915_gem_stolen.c