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>
This commit is contained in:
Colin Ian King 2016-10-19 12:05:53 +01:00 коммит произвёл Vinod Koul
Родитель 9934075471
Коммит 0741b81924
1 изменённых файлов: 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);