diff options
author | Boris Brezillon <boris.brezillon@free-electrons.com> | 2016-09-16 16:59:20 +0200 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2016-10-02 22:48:14 +0200 |
commit | f036dfeb859cb412fdbe8e3ee74b632d9ce6387e (patch) | |
tree | 9cfd9243e10f5cb7622b100fd6a73218e26f96da /drivers/mtd/nftlcore.c | |
parent | UBI: move the global ech and vidh variables into struct ubi_attach_info (diff) | |
download | linux-dev-f036dfeb859cb412fdbe8e3ee74b632d9ce6387e.tar.xz linux-dev-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/nftlcore.c')
0 files changed, 0 insertions, 0 deletions