UBI: Fastmap: Don't allocate new ubi_wl_entry objects
authorRichard Weinberger <richard@nod.at>
Mon, 6 Oct 2014 12:47:51 +0000 (14:47 +0200)
committerRichard Weinberger <richard@nod.at>
Thu, 26 Mar 2015 21:17:47 +0000 (22:17 +0100)
commitc4ca6be9d67eaf5a53054903530c8f422b4b88bd
tree70f4e66f64464cc208ac09bc19c4906db3072b77
parent6830356466a57db21c7bc31bf3be4e61189e145b
UBI: Fastmap: Don't allocate new ubi_wl_entry objects

There is no need to allocate new ones every time, we can reuse
the existing ones.
This makes the code cleaner and more easy to follow.

Signed-off-by: Richard Weinberger <richard@nod.at>
Reviewed-by: Tanya Brokhman <tlinder@codeaurora.org>
Reviewed-by: Guido Martínez <guido@vanguardiasur.com.ar>
drivers/mtd/ubi/fastmap.c
drivers/mtd/ubi/wl.c