From: Zhaolei <zhaolei@cn.fujitsu.com>
To: Maxim Shchetynin <maxim@de.ibm.com>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] Remove unused variable in axon_ram_make_request()
Date: Tue, 14 Jul 2009 17:08:38 +0800 [thread overview]
Message-ID: <4A5C4B16.1080709@cn.fujitsu.com> (raw)
In-Reply-To: <4A5C499A.8080408@cn.fujitsu.com>
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
parent reply other threads:[~2009-07-14 9:08 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <4A5C499A.8080408@cn.fujitsu.com>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A5C4B16.1080709@cn.fujitsu.com \
--to=zhaolei@cn.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=maxim@de.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox