summaryrefslogtreecommitdiff
path: root/drivers/mtd/mtdconcat.c
diff options
context:
space:
mode:
authorBoris Brezillon <boris.brezillon@free-electrons.com>2016-09-16 17:59:21 +0300
committerRichard Weinberger <richard@nod.at>2016-10-02 23:48:14 +0300
commit2d78aee426d821bbecbc80ee96ada5730ee68b6f (patch)
tree3ec086d07295b69654ba957d47ec723cd3a044c1 /drivers/mtd/mtdconcat.c
parentf036dfeb859cb412fdbe8e3ee74b632d9ce6387e (diff)
downloadlinux-2d78aee426d821bbecbc80ee96ada5730ee68b6f.tar.xz
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/mtdconcat.c')
0 files changed, 0 insertions, 0 deletions