dmaengine: qcom_hidma: use true,false for bool variable
Subsystems (3)
PATCH 1/1 dmaengine: qcom_hidma: use true,false for bool variable
Fix the following coccicheck warning:
drivers/dma/qcom/hidma.c:553:1-17: WARNING: Assignment of 0/1 to bool variable
Signed-off-by Jason Yan <[email protected]>
--- drivers/dma/qcom/hidma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dma/qcom/hidma.c +1 -1
@@ -550,7 +550,7 @@ static void hidma_free_chan_resources(struct dma_chan *dmach)kfree (mdesc); } - mchan->allocated =0 ; + mchan->allocated = false;spin_unlock_irqrestore (&mchan->lock, irqflags); }
Signature · 1 line
2.21.1
Sinan Kaya
maintainerQuoted 15 lines · Jason Yan
Fix the following coccicheck warning:
drivers/dma/qcom/hidma.c:553:1-17: WARNING: Assignment of 0/1 to bool variable
Signed-off-by Jason Yan <[email protected]>--- drivers/dma/qcom/hidma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/dma/qcom/hidma.c +0
-0
drivers/dma/qcom/hidma.c static void hidma_free_chan_resources(struct dma_chan *dmach) · line 555
Quoted 7 lines
drivers/dma/qcom/hidma.c +1
-1@@ -550,7 +550,7 @@ static void hidma_free_chan_resources(struct dma_chan *dmach)kfree (mdesc); } - mchan->allocated =0 ; + mchan->allocated = false;spin_unlock_irqrestore (&mchan->lock, irqflags); }
Acked By: Sinan Kaya <[email protected]>
Quoted 4 lines · Jason Yan
Fix the following coccicheck warning:
drivers/dma/qcom/hidma.c:553:1-17: WARNING: Assignment of 0/1 to bool variable
Applied, thanks
Signature · 1 line
~Vinod