From: Jason Yan Date: Mon, 4 May 2020 11:34:06 +0000 (+0800) Subject: dmaengine: qcom_hidma: use true,false for bool variable X-Git-Tag: v5.15~3629^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d24224dea57108f96d13579f20206c339bb8e52f;p=platform%2Fkernel%2Flinux-starfive.git 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 Acked By: Sinan Kaya Link: https://lore.kernel.org/r/20200504113406.41530-1-yanaijie@huawei.com Signed-off-by: Vinod Koul --- diff --git a/drivers/dma/qcom/hidma.c b/drivers/dma/qcom/hidma.c index 87490e1..0a6d3ea 100644 --- a/drivers/dma/qcom/hidma.c +++ b/drivers/dma/qcom/hidma.c @@ -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); }