dmaengine: dw-edma: Fix Using plain integer as NULL pointer in dw-edma-v0-debugfs.c
authorGustavo Pimentel <Gustavo.Pimentel@synopsys.com>
Tue, 15 Sep 2020 21:56:11 +0000 (23:56 +0200)
committerVinod Koul <vkoul@kernel.org>
Fri, 18 Sep 2020 07:12:33 +0000 (12:42 +0530)
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>
Link: https://lore.kernel.org/r/6569fd8ca5ddaa73afef1241ad7978c2a1fae0c7.1600206938.git.gustavo.pimentel@synopsys.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/dw-edma/dw-edma-v0-debugfs.c

index 4273950..6f62711 100644 (file)
@@ -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;