diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2011-04-18 11:16:42 +0100 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2011-05-10 18:15:26 +0100 |
commit | f1b6a5054c5c5c1770863b781de9b721fc99c3e3 (patch) | |
tree | 9036ad665dd3376bb791e9834ddf15934abc6f2a /arch | |
parent | b20bff02b21ac7b725fd09590d5724d306552529 (diff) | |
download | op-kernel-dev-f1b6a5054c5c5c1770863b781de9b721fc99c3e3.zip op-kernel-dev-f1b6a5054c5c5c1770863b781de9b721fc99c3e3.tar.gz |
MIPS: JZ4740: Fix GCC 4.6.0 build error.
CC arch/mips/jz4740/dma.o
arch/mips/jz4740/dma.c: In function 'jz4740_dma_chan_irq':
arch/mips/jz4740/dma.c:245:11: error: variable 'status' set but not used [-Werro
r=unused-but-set-variable]
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/jz4740/dma.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/mips/jz4740/dma.c b/arch/mips/jz4740/dma.c index 5ebe75a..d7feb89 100644 --- a/arch/mips/jz4740/dma.c +++ b/arch/mips/jz4740/dma.c @@ -242,9 +242,7 @@ EXPORT_SYMBOL_GPL(jz4740_dma_get_residue); static void jz4740_dma_chan_irq(struct jz4740_dma_chan *dma) { - uint32_t status; - - status = jz4740_dma_read(JZ_REG_DMA_STATUS_CTRL(dma->id)); + (void) jz4740_dma_read(JZ_REG_DMA_STATUS_CTRL(dma->id)); jz4740_dma_write_mask(JZ_REG_DMA_STATUS_CTRL(dma->id), 0, JZ_DMA_STATUS_CTRL_ENABLE | JZ_DMA_STATUS_CTRL_TRANSFER_DONE); |