From: Haowen Bai Date: Tue, 12 Apr 2022 07:59:00 +0000 (+0800) Subject: dmaengine: mediatek: mtk-hsdma: use NULL instead of using plain integer as pointer X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e335de6ba5b63872e03208c83a44d2dc155985b8;p=linux.git dmaengine: mediatek: mtk-hsdma: use NULL instead of using plain integer as pointer This fixes the following sparse warnings: drivers/dma/mediatek/mtk-hsdma.c:604:26: warning: Using plain integer as NULL pointer Signed-off-by: Haowen Bai Link: https://lore.kernel.org/r/1649750340-30777-1-git-send-email-baihaowen@meizu.com Signed-off-by: Vinod Koul --- diff --git a/drivers/dma/mediatek/mtk-hsdma.c b/drivers/dma/mediatek/mtk-hsdma.c index c0fffde7fe086..9ebd9231f62f4 100644 --- a/drivers/dma/mediatek/mtk-hsdma.c +++ b/drivers/dma/mediatek/mtk-hsdma.c @@ -601,7 +601,7 @@ static void mtk_hsdma_free_rooms_in_ring(struct mtk_hsdma_device *hsdma) cb->flag = 0; } - cb->vd = 0; + cb->vd = NULL; /* * Recycle the RXD with the helper WRITE_ONCE that can ensure