]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
media: v4l: omap_vout: vrfb: remove an unused variable
authorArnd Bergmann <arnd@arndb.de>
Tue, 13 Mar 2018 12:05:36 +0000 (08:05 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 22 Mar 2018 10:17:07 +0000 (06:17 -0400)
We now get a warning after the 'dmadev' variable is no longer used:

drivers/media/platform/omap/omap_vout_vrfb.c: In function 'omap_vout_prepare_vrfb':
drivers/media/platform/omap/omap_vout_vrfb.c:239:21: error: unused variable 'dmadev' [-Werror=unused-variable]

Fixes: 8f0aa38292f2 ("media: v4l: omap_vout: vrfb: Use the wrapper for prep_interleaved_dma()")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/omap/omap_vout_vrfb.c

index 72c0ac2cbf3d7c7ea1c873caea2ae7613223d8c7..1d8508237220f25350bbf2f0da6dc281980255a2 100644 (file)
@@ -236,7 +236,6 @@ int omap_vout_prepare_vrfb(struct omap_vout_device *vout,
        struct dma_async_tx_descriptor *tx;
        enum dma_ctrl_flags flags = DMA_PREP_INTERRUPT | DMA_CTRL_ACK;
        struct dma_chan *chan = vout->vrfb_dma_tx.chan;
-       struct dma_device *dmadev = chan->device;
        struct dma_interleaved_template *xt = vout->vrfb_dma_tx.xt;
        dma_cookie_t cookie;
        enum dma_status status;