UBI: fastmap: use ubi_rb_for_each_entry() in unmap_peb()
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Fri, 16 Sep 2016 14:59:16 +0000 (16:59 +0200)
committerRichard Weinberger <richard@nod.at>
Sun, 2 Oct 2016 20:48:14 +0000 (22:48 +0200)
commitf2fb1346b3806a9b6b06cc80fe18760debc933f4
tree388f374e4e7b134a19bb53bcceef05a2b658c96b
parentf9efe8d8a5d54e426da9029f5db78e90ac7a141a
UBI: fastmap: use ubi_rb_for_each_entry() in unmap_peb()

Use the ubi_rb_for_each_entry() macro instead of open-coding it.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
drivers/mtd/ubi/fastmap.c