Skip to contentSkip to conversation

UBI: fix typos in wl.c

PATCH In review Alexander Schmidt 2 participants 2 messages Mar 21, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 UBI: fix typos in wl.c

---
 drivers/mtd/ubi/wl.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/mtd/ubi/wl.c +2 -2
@@ -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);
 
 	/*
#1 lore raw
Quoted 4 lines · Alexander Schmidt
---
 drivers/mtd/ubi/wl.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Well spotted, committed, kiitos :)

Signature · 2 lines
Best regards,
Artem Bityutskiy (Битюцкий Артём)