Messages in this thread Patch in this message | | | Date | Tue, 14 Jul 2009 17:08:38 +0800 | From | Zhaolei <> | 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
| |