commit | 342eb8103a97be3803369ebcc1f7f43a24866521 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Mon Oct 01 12:22:09 2018 -0600 |
committer | Simon Glass <sjg@chromium.org> | Tue Oct 09 04:40:27 2018 -0600 |
tree | df5e1506785829d0db8920625dee12e849106df7 | |
parent | 699c9ca6ebb498efda70da91c57863e1738a00fe [diff] |
sf: Avoid allocating memory on every read operation At present spi_flash_cmd_read_ops() allocates and frees a few bytes of memory every time it is called. It is faster to use the stack for this and this is now supported by the minimum GCC version required by U-Boot. Remove the allocation and use a variable-sized array instead. Signed-off-by: Simon Glass <sjg@chromium.org>