[PATCH] [MTD] UBI: fix typos in wl.c

Alexander Schmidt alexs at linux.vnet.ibm.com
Wed Mar 21 11:07:30 EDT 2007


Signed-off-by: Alexander Schmidt <alexs at linux.vnet.ibm.com>
---
 drivers/mtd/ubi/wl.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

--- dedekind-ubi-2.6.orig/drivers/mtd/ubi/wl.c
+++ dedekind-ubi-2.6/drivers/mtd/ubi/wl.c
@@ -811,7 +811,7 @@ static int schedule_erase(struct ubi_dev
  * @wrk: the work object
  * @cancel: non-zero if the worker has to free memory and exit
  *
- * This function copies a less worn out physical eraseblock to a more worn out
+ * This function copies a more worn out physical eraseblock to a less worn out
  * one. Returns zero in case of success and a negative error code in case of
  * failure.
  */
@@ -891,7 +891,7 @@ static int wear_leveling_worker(struct u
 	ubi_assert(!ubi->move_from && !ubi->move_to);
 	ubi_assert(!ubi->move_to_put && !ubi->move_from_put);
 	ubi->move_from = e1;
-	ubi->move_to = e1;
+	ubi->move_to = e2;
 	spin_unlock(&ubi->wl_lock);
 
 	/*




More information about the linux-mtd mailing list