commit | 9a5f09ac0ab83e4a965a24edd6cf7cb0303c6dc9 | [log] [tgz] |
---|---|---|
author | Boris Brezillon <boris.brezillon@free-electrons.com> | Fri Sep 16 16:59:22 2016 +0200 |
committer | Richard Weinberger <richard@nod.at> | Sun Oct 02 22:48:14 2016 +0200 |
tree | 585c31efc8dc614a7bc705f73cfb8c69ae728913 | |
parent | 2d78aee426d821bbecbc80ee96ada5730ee68b6f [diff] |
UBI: add an helper to check lnum validity ubi_leb_valid() is here to replace the lnum < 0 || lnum >= vol->reserved_pebs checks. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com> Signed-off-by: Richard Weinberger <richard@nod.at>