diff options
author | Marek Vasut <marex@denx.de> | 2014-12-16 14:09:16 +0100 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2014-12-30 14:05:48 +0100 |
commit | cd3c5896b6582e73cf6a6d48c7ecc29924fa3089 (patch) | |
tree | b68a3f37d7796415756c0abfe8e9597f8dda7c23 /snapshot.commit | |
parent | c86efd85e99464f5dfe69b6477f9b0dfd7691063 (diff) | |
download | u-boot-imx-cd3c5896b6582e73cf6a6d48c7ecc29924fa3089.zip u-boot-imx-cd3c5896b6582e73cf6a6d48c7ecc29924fa3089.tar.gz u-boot-imx-cd3c5896b6582e73cf6a6d48c7ecc29924fa3089.tar.bz2 |
imx: i2c: Zap unnecessary malloc() calls
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>
Diffstat (limited to 'snapshot.commit')
0 files changed, 0 insertions, 0 deletions