diff options
author | Simon Glass <sjg@chromium.org> | 2018-10-01 12:22:09 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2018-10-09 04:40:27 -0600 |
commit | 97f57109bb750d0b2908d6ecd4aef3801baf1cf2 (patch) | |
tree | df5e1506785829d0db8920625dee12e849106df7 /board | |
parent | e6c5c94a79d9e1dd20f869a3169bf2be00d53d14 (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>
Diffstat (limited to 'board')
0 files changed, 0 insertions, 0 deletions