memcpy/memmove: Do not copy to same address
authorMatthias Weisser <weisserm@arcor.de>
Sun, 22 May 2011 23:03:55 +0000 (23:03 +0000)
committerWolfgang Denk <wd@denx.de>
Mon, 25 Jul 2011 22:28:44 +0000 (00:28 +0200)
commitb038db852b5b7120f1ff825d8e2a5c2cd14c2f0f
treef17c46b445dab4e227a4c47abad4eab5249789e4
parent942e31437d2ba34acab259901b929532ba77390a
memcpy/memmove: Do not copy to same address

In some cases (e.g. bootm with a elf payload which is already at the right
position) there is a in place copy of data to the same address. Catching this
saves some ms while booting.

Signed-off-by: Matthias Weisser <weisserm@arcor.de>
lib/string.c