commit | f036dfeb859cb412fdbe8e3ee74b632d9ce6387e | [log] [tgz] |
---|---|---|
author | Boris Brezillon <boris.brezillon@free-electrons.com> | Fri Sep 16 16:59:20 2016 +0200 |
committer | Richard Weinberger <richard@nod.at> | Sun Oct 02 22:48:14 2016 +0200 |
tree | 9cfd9243e10f5cb7622b100fd6a73218e26f96da | |
parent | 7b6b749b125a93d673ba12977007dfbd65a61c32 [diff] |
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>