From: Tom Rini Date: Mon, 27 May 2019 22:06:00 -0400 Subject: [U-Boot] [PATCH 1/3] spl: ram: Do not memcpy() identical buffers In-Reply-To: <20190528014915.6202-1-marex@denx.de> References: <20190528014915.6202-1-marex@denx.de> Message-ID: <20190528020600.GJ20781@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > Cc: Michal Simek > Cc: Tom Rini 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: