aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBoris Brezillon <[email protected]>2017-12-05 12:09:29 +0100
committerBoris Brezillon <[email protected]>2017-12-14 13:34:23 +0100
commitaeb93af96d0b0f0916aa0f65fe400a1808ea9cb9 (patch)
tree070fb22f4a3479b680f2b170b3d2ac49725aa90e /tools
parent8c677541bb24871ce44b5a1e327a3e7f5792eae4 (diff)
mtd: nand: Only allocate ecc->{calc, code}_buf when actually needed
The only users of the ecc->{calc,code}_buf buffers are NAND controller drivers implementing ecc->calculate() and/or ecc->correct(). Since the ->oobsize can be non-negligle, especially on modern NAND devices, we'd better allocate it only when it is actually required. Make ecc->{calc,code}_buf allocation dependent on the presence of ecc->calculate() or ecc->correct(). Signed-off-by: Boris Brezillon <[email protected]> Reviewed-by: Masahiro Yamada <[email protected]>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions