Commit e335de6b authored by Haowen Bai's avatar Haowen Bai Committed by Vinod Koul
Browse files

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: default avatarHaowen Bai <baihaowen@meizu.com>
Link: https://lore.kernel.org/r/1649750340-30777-1-git-send-email-baihaowen@meizu.com


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 3dbc47a9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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