UBI: do not allocate the memory unnecessarily
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Fri, 26 Oct 2012 13:11:26 +0000 (16:11 +0300)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Fri, 26 Oct 2012 13:29:46 +0000 (16:29 +0300)
UBI reserves an LEB sized buffer for various needs. We can use this buffer
while scanning, instead of allocating another one. This patch was originally
created by Jan Luebbe <jlu@pengutronix.de>, but then he dropped it and I picked
up and tweaked a little bit.

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>

No differences found