Skip to content
Commit 97f57109 authored by Simon Glass's avatar Simon Glass
Browse files

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: default avatarSimon Glass <sjg@chromium.org>
parent e6c5c94a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment