Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dmaengine: omap-dma: initialize can_pause to false

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 <colin.king@canonical.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>

authored by

Colin Ian King and committed by
Vinod Koul
0741b819 99340754

+1 -1
+1 -1
drivers/dma/omap-dma.c
··· 1286 1286 struct omap_dmadev *od = to_omap_dma_dev(chan->device); 1287 1287 unsigned long flags; 1288 1288 int ret = -EINVAL; 1289 - bool can_pause; 1289 + bool can_pause = false; 1290 1290 1291 1291 spin_lock_irqsave(&od->irq_lock, flags); 1292 1292