Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 84239
b: refs/heads/master
c: 16f557e
h: refs/heads/master
i:
  84237: 1d4d478
  84235: 3188139
  84231: 11e52f5
  84223: 961049f
v: v3
  • Loading branch information
Artem Bityutskiy authored and Artem Bityutskiy committed Dec 26, 2007
1 parent 272faae commit 290f8d2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 593dd33c92c6529443d5df1350dc5cc76511232d
refs/heads/master: 16f557ecbf96dd13d13788a6f62d4d97ae73b1f9
5 changes: 2 additions & 3 deletions trunk/drivers/mtd/ubi/vtbl.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,8 @@ int ubi_change_vtbl_record(struct ubi_device *ubi, int idx,
}

/**
* vol_til_check - check if volume table is not corrupted and contains sensible
* data.
*
* vtbl_check - check if volume table is not corrupted and contains sensible
* data.
* @ubi: UBI device description object
* @vtbl: volume table
*
Expand Down
9 changes: 3 additions & 6 deletions trunk/drivers/mtd/ubi/wl.c
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,6 @@ static int do_work(struct ubi_device *ubi)
*/
down_read(&ubi->work_sem);
spin_lock(&ubi->wl_lock);

if (list_empty(&ubi->works)) {
spin_unlock(&ubi->wl_lock);
up_read(&ubi->work_sem);
Expand All @@ -268,6 +267,8 @@ static int do_work(struct ubi_device *ubi)

wrk = list_entry(ubi->works.next, struct ubi_work, list);
list_del(&wrk->list);
ubi->works_count -= 1;
ubi_assert(ubi->works_count >= 0);
spin_unlock(&ubi->wl_lock);

/*
Expand All @@ -278,12 +279,8 @@ static int do_work(struct ubi_device *ubi)
err = wrk->func(ubi, wrk, 0);
if (err)
ubi_err("work failed with error code %d", err);

spin_lock(&ubi->wl_lock);
ubi->works_count -= 1;
ubi_assert(ubi->works_count >= 0);
spin_unlock(&ubi->wl_lock);
up_read(&ubi->work_sem);

return err;
}

Expand Down

0 comments on commit 290f8d2

Please sign in to comment.