Skip to content

Commit d24224d

Browse files
JasonYanHwvinodkoul
authored andcommitted
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]> Acked By: Sinan Kaya <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent bd96f1b commit d24224d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/dma/qcom/hidma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ static void hidma_free_chan_resources(struct dma_chan *dmach)
550550
kfree(mdesc);
551551
}
552552

553-
mchan->allocated = 0;
553+
mchan->allocated = false;
554554
spin_unlock_irqrestore(&mchan->lock, irqflags);
555555
}
556556

0 commit comments

Comments
 (0)