summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi/kapi.c
diff options
context:
space:
mode:
authorBoris Brezillon <boris.brezillon@free-electrons.com>2016-09-16 16:59:21 +0200
committerRichard Weinberger <richard@nod.at>2016-10-02 22:48:14 +0200
commit2d78aee426d821bbecbc80ee96ada5730ee68b6f (patch)
tree3ec086d07295b69654ba957d47ec723cd3a044c1 /drivers/mtd/ubi/kapi.c
parentf036dfeb859cb412fdbe8e3ee74b632d9ce6387e (diff)
downloadlinux-2d78aee426d821bbecbc80ee96ada5730ee68b6f.tar.bz2
UBI: simplify LEB write and atomic LEB change code
ubi_eba_write_leb(), ubi_eba_write_leb_st() and ubi_eba_atomic_leb_change() are using a convoluted retry/exit path. Add the try_write_vid_and_data() function to simplify the retry logic and make sure we have a single exit path instead of manually releasing the resources in each error path. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'drivers/mtd/ubi/kapi.c')
0 files changed, 0 insertions, 0 deletions