* [PATCH] Remove unused variable in axon_ram_make_request()
[not found] <4A5C499A.8080408@cn.fujitsu.com>
@ 2009-07-14 9:08 ` Zhaolei
0 siblings, 0 replies; only message in thread
From: Zhaolei @ 2009-07-14 9:08 UTC (permalink / raw)
To: Maxim Shchetynin; +Cc: linux-kernel
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-07-14 9:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <4A5C499A.8080408@cn.fujitsu.com>
2009-07-14 9:08 ` [PATCH] Remove unused variable in axon_ram_make_request() Zhaolei
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox