projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3dbc47a
)
dmaengine: mediatek: mtk-hsdma: use NULL instead of using plain integer as pointer
author
Haowen Bai
<baihaowen@meizu.com>
Tue, 12 Apr 2022 07:59:00 +0000
(15:59 +0800)
committer
Vinod Koul
<vkoul@kernel.org>
Wed, 20 Apr 2022 11:50:02 +0000
(17:20 +0530)
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>
drivers/dma/mediatek/mtk-hsdma.c
patch
|
blob
|
history
diff --git
a/drivers/dma/mediatek/mtk-hsdma.c
b/drivers/dma/mediatek/mtk-hsdma.c
index
c0fffde
..
9ebd923
100644
(file)
--- 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