Skip to content

Commit

Permalink
dmaengine: mediatek: mtk-hsdma: use NULL instead of using plain integ…
Browse files Browse the repository at this point in the history
…er 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 <baihaowen@meizu.com>
Link: https://lore.kernel.org/r/1649750340-30777-1-git-send-email-baihaowen@meizu.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
  • Loading branch information
Haowen Bai authored and Vinod Koul committed Apr 20, 2022
1 parent 3dbc47a commit e335de6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/dma/mediatek/mtk-hsdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e335de6

Please sign in to comment.