dmaengine: omap-dma: initialize can_pause to false
PATCH 1/1 dmaengine: omap-dma: initialize can_pause to false
From: Colin Ian King <[email protected]>
can_pause is not initialized so it contains garbage. Fix this by setting it to false.
Found using static analysis with cppcheck.
Signed-off-by Colin Ian King <[email protected]>
--- drivers/dma/omap-dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dma/omap-dma.c +1 -1
@@ -1286,7 +1286,7 @@ static int omap_dma_pause(struct dma_chan *chan)struct omap_dmadev *od =to_omap_dma_dev (chan->device);unsigned long flags;int ret = -EINVAL ; -bool can_pause; +bool can_pause = false;spin_lock_irqsave (&od->irq_lock, flags);
Signature · 1 line
2.9.3
Vinod Koul
AppliedQuoted 6 lines · Colin King
From: Colin Ian King <[email protected]>
can_pauseis not initialized so it contains garbage. Fix this by setting it to false.Found using static analysis with cppcheck.
It is usuallu helpful to show the warning generated by static tools.
Applied, anyway
Signature · 1 line
~Vinod