提交 0741b819 编写于 作者: C Colin Ian King 提交者: Vinod Koul

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: NColin Ian King <colin.king@canonical.com>
Signed-off-by: NVinod Koul <vinod.koul@intel.com>
上级 99340754
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册