Message ID | 20240810112944.175509-1-kdipendra88@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Fix warning: Using plain integer as NULL pointer in msm_ringbuffer.c | expand |
diff --git a/drivers/gpu/drm/msm/msm_ringbuffer.c b/drivers/gpu/drm/msm/msm_ringbuffer.c index e397c44cc011..5c73b8577945 100644 --- a/drivers/gpu/drm/msm/msm_ringbuffer.c +++ b/drivers/gpu/drm/msm/msm_ringbuffer.c @@ -31,7 +31,7 @@ struct msm_ringbuffer *msm_ringbuffer_new(struct msm_gpu *gpu, int id, if (IS_ERR(ring->start)) { ret = PTR_ERR(ring->start); - ring->start = 0; + ring->start = NULL; goto fail; }
sparse reported following warning: ''' drivers/gpu/drm/msm/msm_ringbuffer.c:34:31: warning: Using plain integer as NULL pointer ''' This fix changes integer 0 to NULL. Signed-off-by: Dipendra Khadka <kdipendra88@gmail.com> --- drivers/gpu/drm/msm/msm_ringbuffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)