mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-02-05 05:27:45 +01:00
The malloc() calls are unnecessary, just allocate the stuff on stack. While at it, reorder the code a little, so that only one variable is used for the text, use snprintf() instead of sprintf() and use %01d as a formatting string to avoid any possible overflows. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Igor Grinberg <grinberg@compulab.co.il> Cc: Nikita Kiryanov <nikita@compulab.co.il> Cc: Sean Cross <xobs@kosagi.com> Cc: Simon Glass <sjg@chromium.org> Cc: Stefano Babic <sbabic@denx.de> Cc: Tim Harvey <tharvey@gateworks.com> Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com> |
||
|---|---|---|
| .. | ||
| cmd_bmode.c | ||
| cmd_hdmidet.c | ||
| cpu.c | ||
| i2c-mxv7.c | ||
| iomux-v3.c | ||
| Makefile | ||
| misc.c | ||
| sata.c | ||
| speed.c | ||
| spl.c | ||
| spl_sd.cfg | ||
| timer.c | ||
| video.c | ||