diff options
author | Colin Ian King <colin.king@canonical.com> | 2016-10-19 12:05:53 +0100 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2016-10-19 18:47:29 +0530 |
commit | 0741b819246029a7e53b8edcc5693debd7c00c8f (patch) | |
tree | ed494dbf4ab2f67706c869c0e4e9bfee3ee7a807 /drivers/dma/omap-dma.c | |
parent | 9934075471dcc6de9bdce1f3c1e16f1afbd711a8 (diff) | |
download | linux-stable-0741b819246029a7e53b8edcc5693debd7c00c8f.tar.gz linux-stable-0741b819246029a7e53b8edcc5693debd7c00c8f.tar.bz2 linux-stable-0741b819246029a7e53b8edcc5693debd7c00c8f.zip |
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>
Diffstat (limited to 'drivers/dma/omap-dma.c')
-rw-r--r-- | drivers/dma/omap-dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/omap-dma.c b/drivers/dma/omap-dma.c index fd6b9e6834ad..15eb8024666b 100644 --- a/drivers/dma/omap-dma.c +++ b/drivers/dma/omap-dma.c @@ -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); |