lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Tue, 14 Jul 2009 17:08:38 +0800
From:	Zhaolei <zhaolei@...fujitsu.com>
To:	Maxim Shchetynin <maxim@...ibm.com>
CC:	linux-kernel@...r.kernel.org
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@...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


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ