Commit 84d3b0db authored by Ralf Baechle's avatar Ralf Baechle

MIPS: Jazz: Fix GCC 4.6.0 build error

  CC      arch/mips/jazz/jazzdma.o
arch/mips/jazz/jazzdma.c: In function 'vdma_remap':
arch/mips/jazz/jazzdma.c:214:20: error: variable 'npages' set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 11b9d0ec
...@@ -211,7 +211,7 @@ EXPORT_SYMBOL(vdma_free); ...@@ -211,7 +211,7 @@ EXPORT_SYMBOL(vdma_free);
*/ */
int vdma_remap(unsigned long laddr, unsigned long paddr, unsigned long size) int vdma_remap(unsigned long laddr, unsigned long paddr, unsigned long size)
{ {
int first, pages, npages; int first, pages;
if (laddr > 0xffffff) { if (laddr > 0xffffff) {
if (vdma_debug) if (vdma_debug)
...@@ -228,8 +228,7 @@ int vdma_remap(unsigned long laddr, unsigned long paddr, unsigned long size) ...@@ -228,8 +228,7 @@ int vdma_remap(unsigned long laddr, unsigned long paddr, unsigned long size)
return -EINVAL; /* invalid physical address */ return -EINVAL; /* invalid physical address */
} }
npages = pages = pages = (((paddr & (VDMA_PAGESIZE - 1)) + size) >> 12) + 1;
(((paddr & (VDMA_PAGESIZE - 1)) + size) >> 12) + 1;
first = laddr >> 12; first = laddr >> 12;
if (vdma_debug) if (vdma_debug)
printk("vdma_remap: first=%x, pages=%x\n", first, pages); printk("vdma_remap: first=%x, pages=%x\n", first, pages);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment