diff options
author | Boris Brezillon <boris.brezillon@free-electrons.com> | 2017-12-05 12:09:28 +0100 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2017-12-14 13:34:22 +0100 |
commit | 8c677541bb24871ce44b5a1e327a3e7f5792eae4 (patch) | |
tree | 19a4df260d55971146f321acc76a83432ba0f6fe /drivers/accessibility | |
parent | 98dea8d71931460c189e5001b0faf2180a42db42 (diff) |
mtd: nand: denali: Avoid using ecc->code_buf as a temporary buffer
ECC bytes are contiguous in the ->oob_poi buffer, which means we don't
have to copy them into ->code_buf (here used as a temporary buffer)
before passing them to the nand_check_erased_ecc_chunk() function.
This change will allow us to allocate ecc->{code,calc}_buf only when
ecc->calculate() or ecc->correct() is specified.
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'drivers/accessibility')
0 files changed, 0 insertions, 0 deletions