summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi/debug.c
diff options
context:
space:
mode:
authorBoris Brezillon2016-09-16 16:59:20 +0200
committerRichard Weinberger2016-10-02 22:48:14 +0200
commitf036dfeb859cb412fdbe8e3ee74b632d9ce6387e (patch)
tree9cfd9243e10f5cb7622b100fd6a73218e26f96da /drivers/mtd/ubi/debug.c
parentUBI: move the global ech and vidh variables into struct ubi_attach_info (diff)
downloadkernel-qcow2-linux-f036dfeb859cb412fdbe8e3ee74b632d9ce6387e.tar.gz
kernel-qcow2-linux-f036dfeb859cb412fdbe8e3ee74b632d9ce6387e.tar.xz
kernel-qcow2-linux-f036dfeb859cb412fdbe8e3ee74b632d9ce6387e.zip
UBI: simplify recover_peb() code
recover_peb() is using a convoluted retry/exit path. Add try_recover_peb() to simplify the retry logic and make sure we have a single exit path instead of manually releasing the resource 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/debug.c')
0 files changed, 0 insertions, 0 deletions