UBI: fix typos in wl.c
Subsystems (2)
PATCH 1/1 UBI: fix typos in wl.c
Signed-off-by Alexander Schmidt <[email protected]>
--- 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 uubi_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);/*
Quoted 4 lines · Alexander Schmidt
Signed-off-by Alexander Schmidt <[email protected]>--- drivers/mtd/ubi/wl.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
Well spotted, committed, kiitos :)
Signature · 2 lines
Best regards, Artem Bityutskiy (Битюцкий Артём)