diff options
author | Jason Yan <yanaijie@huawei.com> | 2020-05-04 19:34:06 +0800 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2020-05-13 17:06:32 +0530 |
commit | d24224dea57108f96d13579f20206c339bb8e52f (patch) | |
tree | 31d84f1730d19a3408beac578ca7cf2447eb15bf /drivers/dma/qcom | |
parent | bd96f1b2f43a39310cc576bb4faf2ea24317a4c9 (diff) |
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 <yanaijie@huawei.com>
Acked By: Sinan Kaya <okaya@kernel.org>
Link: https://lore.kernel.org/r/20200504113406.41530-1-yanaijie@huawei.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/qcom')
-rw-r--r-- | drivers/dma/qcom/hidma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/qcom/hidma.c b/drivers/dma/qcom/hidma.c index 87490e125bc3..0a6d3ea08c78 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); } |