public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH 3/4] UBI WL-Subsys: Improvement in prot tree
       [not found] <1228823124.2753.16.camel@localhost.localdomain>
@ 2008-12-09 11:45 ` xiaochuan-xu
  0 siblings, 0 replies; only message in thread
From: xiaochuan-xu @ 2008-12-09 11:45 UTC (permalink / raw)
  To: linux-mtd

>From 2d53575283697fb1db53da47227217c8b8d4858f Mon Sep 17 00:00:00 2001
From: Xiaochuan-Xu <xiaochuan-xu@cqu.edu.cn>
Date: Tue, 9 Dec 2008 19:17:52 +0800
Subject: [PATCH] unnecessary variable deleted

Signed-off-by: Xiaochuan-Xu <xiaochuan-xu@cqu.edu.cn>
---
 drivers/mtd/ubi/ubi.h |    2 --
 drivers/mtd/ubi/wl.c  |    1 -
 2 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/drivers/mtd/ubi/ubi.h b/drivers/mtd/ubi/ubi.h
index 7072aa5..bfae2da 100644
--- a/drivers/mtd/ubi/ubi.h
+++ b/drivers/mtd/ubi/ubi.h
@@ -341,7 +341,6 @@ struct ubi_wl_entry;
  * @wl_scheduled: non-zero if the wear-leveling was scheduled
  * @lookuptbl: a table to quickly find a &struct ubi_wl_entry object for any
  *             physical eraseblock
- * @abs_ec: absolute erase counter
  * @move_from: physical eraseblock from where the data is being moved
  * @move_to: physical eraseblock where the data is being moved to
  * @move_to_put: if the "to" PEB was put
@@ -423,7 +422,6 @@ struct ubi_device {
 	struct rw_semaphore work_sem;
 	int wl_scheduled;
 	struct ubi_wl_entry **lookuptbl;
-	unsigned long long abs_ec;
 	struct ubi_wl_entry *move_from;
 	struct ubi_wl_entry *move_to;
 	int move_to_put;
diff --git a/drivers/mtd/ubi/wl.c b/drivers/mtd/ubi/wl.c
index c92bd86..0b1e8c7 100644
--- a/drivers/mtd/ubi/wl.c
+++ b/drivers/mtd/ubi/wl.c
@@ -1015,7 +1015,6 @@ static int erase_worker(struct ubi_device *ubi, struct ubi_work *wl_wrk,
 		kfree(wl_wrk);
 
 		spin_lock(&ubi->wl_lock);
-		ubi->abs_ec += 1;
 		wl_tree_add(e, &ubi->free);
 		spin_unlock(&ubi->wl_lock);
 
-- 
1.5.3.2


-- 
Yours sincerely
xiaochuan-xu(cqu.edu.cn)

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2008-12-09 11:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1228823124.2753.16.camel@localhost.localdomain>
2008-12-09 11:45 ` [PATCH 3/4] UBI WL-Subsys: Improvement in prot tree xiaochuan-xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox