summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2014-12-16 14:09:16 +0100
committerStefano Babic <[email protected]>2014-12-30 14:05:48 +0100
commitcd3c5896b6582e73cf6a6d48c7ecc29924fa3089 (patch)
treeb68a3f37d7796415756c0abfe8e9597f8dda7c23 /include
parentc86efd85e99464f5dfe69b6477f9b0dfd7691063 (diff)
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 <[email protected]> Cc: Igor Grinberg <[email protected]> Cc: Nikita Kiryanov <[email protected]> Cc: Sean Cross <[email protected]> Cc: Simon Glass <[email protected]> Cc: Stefano Babic <[email protected]> Cc: Tim Harvey <[email protected]> Reviewed-by: Christian Gmeiner <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions