lkml.org 
[lkml]   [2009]   [Jul]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] Remove unused variable in axon_ram_make_request()
Variable named "transfered" is not used in this function,
we should remove it.

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
---
arch/powerpc/sysdev/axonram.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/arch/powerpc/sysdev/axonram.c b/arch/powerpc/sysdev/axonram.c
index a477991..29a8bbf 100644
--- a/arch/powerpc/sysdev/axonram.c
+++ b/arch/powerpc/sysdev/axonram.c
@@ -111,13 +111,11 @@ axon_ram_make_request(struct request_queue *queue,
struct bio *bio)
unsigned long phys_mem, phys_end;
void *user_mem;
struct bio_vec *vec;
- unsigned int transfered;
unsigned short idx;
int rc = 0;

phys_mem = bank->io_addr + (bio->bi_sector << AXON_RAM_SECTOR_SHIFT);
phys_end = bank->io_addr + bank->size;
- transfered = 0;
bio_for_each_segment(vec, bio, idx) {
if (unlikely(phys_mem + vec->bv_len > phys_end)) {
bio_io_error(bio);
@@ -132,7 +130,6 @@ axon_ram_make_request(struct request_queue *queue,
struct bio *bio)
memcpy((void *) phys_mem, user_mem, vec->bv_len);

phys_mem += vec->bv_len;
- transfered += vec->bv_len;
}
bio_endio(bio, 0);

--
1.5.5.3



\
 
 \ /
  Last update: 2009-07-14 11:11    [W:0.052 / U:0.308 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site