[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240810110724.174338-1-kdipendra88@gmail.com>
Date: Sat, 10 Aug 2024 11:07:23 +0000
From: Dipendra Khadka <kdipendra88@...il.com>
To: chunkuang.hu@...nel.org,
p.zabel@...gutronix.de,
airlied@...ux.ie,
daniel@...ll.ch,
matthias.bgg@...il.com
Cc: Dipendra Khadka <kdipendra88@...il.com>,
dri-devel@...ts.freedesktop.org,
linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] staging: drivers: gpu: drm: mediatek: Fix warning: Using plain integer as NULL pointer in mtk_drm_gem.c
sparse reported following warking:
'''
drivers/gpu/drm/mediatek/mtk_drm_gem.c:290:27: warning: Using plain integer as NULL pointer
'''
This patch changes integer 0 to NULL.
Signed-off-by: Dipendra Khadka <kdipendra88@...il.com>
---
drivers/gpu/drm/mediatek/mtk_drm_gem.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/mediatek/mtk_drm_gem.c b/drivers/gpu/drm/mediatek/mtk_drm_gem.c
index f8fd8b98c30e..885ce6ac7bad 100644
--- a/drivers/gpu/drm/mediatek/mtk_drm_gem.c
+++ b/drivers/gpu/drm/mediatek/mtk_drm_gem.c
@@ -287,6 +287,6 @@ void mtk_drm_gem_prime_vunmap(struct drm_gem_object *obj, void *vaddr)
return;
vunmap(vaddr);
- mtk_gem->kvaddr = 0;
+ mtk_gem->kvaddr = NULL;
kfree(mtk_gem->pages);
}
--
2.43.0
Powered by blists - more mailing lists