dma-coherent: remove an unused variable
authorChristoph Hellwig <hch@lst.de>
Mon, 4 Sep 2017 06:29:48 +0000 (08:29 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 4 Sep 2017 06:29:48 +0000 (08:29 +0200)
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
drivers/base/dma-coherent.c

index b275eeb739f1001b405f5b667150e5d55caca510..f82a504583d49bde8a88aab4880b4a392cbb0f54 100644 (file)
@@ -157,7 +157,6 @@ static void *__dma_alloc_from_coherent(struct dma_coherent_mem *mem,
        int order = get_order(size);
        unsigned long flags;
        int pageno;
-       int dma_memory_map;
        void *ret;
 
        spin_lock_irqsave(&mem->spinlock, flags);