diff mbox series

dmaengine: dw-edma: Fix Using plain integer as NULL pointer in dw-edma-v0-debugfs.c

Message ID 6569fd8ca5ddaa73afef1241ad7978c2a1fae0c7.1600206938.git.gustavo.pimentel@synopsys.com (mailing list archive)
State Accepted
Headers show
Series dmaengine: dw-edma: Fix Using plain integer as NULL pointer in dw-edma-v0-debugfs.c | expand

Commit Message

Gustavo Pimentel Sept. 15, 2020, 9:56 p.m. UTC
Fixes warning given by executing "make C=2 drivers/dma/dw-edma/"

Sparse output:
drivers/dma/dw-edma/dw-edma-v0-debugfs.c:296:49: warning:
 Using plain integer as NULL pointer

Cc: Joao Pinto <jpinto@synopsys.com>
Signed-off-by: Gustavo Pimentel <gustavo.pimentel@synopsys.com>
---
 drivers/dma/dw-edma/dw-edma-v0-debugfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Vinod Koul Sept. 18, 2020, 7:12 a.m. UTC | #1
On 15-09-20, 23:56, Gustavo Pimentel wrote:
> Fixes warning given by executing "make C=2 drivers/dma/dw-edma/"
> 
> Sparse output:
> drivers/dma/dw-edma/dw-edma-v0-debugfs.c:296:49: warning:
>  Using plain integer as NULL pointer

Applied, thanks
diff mbox series

Patch

diff --git a/drivers/dma/dw-edma/dw-edma-v0-debugfs.c b/drivers/dma/dw-edma/dw-edma-v0-debugfs.c
index 4273950..6f62711 100644
--- a/drivers/dma/dw-edma/dw-edma-v0-debugfs.c
+++ b/drivers/dma/dw-edma/dw-edma-v0-debugfs.c
@@ -293,7 +293,7 @@  void dw_edma_v0_debugfs_on(struct dw_edma_chip *chip)
 	if (!regs)
 		return;
 
-	base_dir = debugfs_create_dir(dw->name, 0);
+	base_dir = debugfs_create_dir(dw->name, NULL);
 	if (!base_dir)
 		return;