[U-Boot] [PATCH v4 06/10] mmc: don't use malloc_cache_aligned()
Simon Glass
sjg at chromium.org
Sat Dec 2 03:29:44 UTC 2017
On 29 November 2017 at 07:29, Jean-Jacques Hiblot <jjhiblot at ti.com> wrote:
> Not using this function reduces the size of the binary. It's replaces by
> a standard malloc() and the alignment requirement is handled by an
> intermediate buffer on the stack.
>
> Also make sure that the allocated buffer is freed in case of error.
>
> Signed-off-by: Jean-Jacques Hiblot <jjhiblot at ti.com>
> ---
> drivers/mmc/mmc.c | 26 +++++++++++++++++---------
> 1 file changed, 17 insertions(+), 9 deletions(-)
Somewhat unsure of this one but it looks right to me.
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list