[U-Boot] [PATCH 1/3] spl: ram: Do not memcpy() identical buffers
Tom Rini
trini at konsulko.com
Tue May 28 02:06:00 UTC 2019
On Tue, May 28, 2019 at 03:49:13AM +0200, Marek Vasut wrote:
> If the source and destination buffer address is identical, there is
> no need to memcpy() the content. Skip the memcpy() in such a case.
>
> Signed-off-by: Marek Vasut <marex at denx.de>
> Cc: Michal Simek <michal.simek at xilinx.com>
> Cc: Tom Rini <trini at konsulko.com>
Shouldn't memcpy catch that itself?
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190527/19b85e66/attachment.sig>
More information about the U-Boot
mailing list