mirror of
https://xff.cz/git/u-boot/
synced 2025-10-22 10:31:56 +02:00
Move test for unnecessary memmove to memmove_wd()
Signed-off-by: Larry Johnson <lrj@acm.org>
This commit is contained in:
committed by
Wolfgang Denk
parent
b050c72d52
commit
54fa2c5b51
@@ -450,6 +450,9 @@ phys_size_t getenv_bootm_size(void)
|
||||
|
||||
void memmove_wd (void *to, void *from, size_t len, ulong chunksz)
|
||||
{
|
||||
if (to == from)
|
||||
return;
|
||||
|
||||
#if defined(CONFIG_HW_WATCHDOG) || defined(CONFIG_WATCHDOG)
|
||||
while (len > 0) {
|
||||
size_t tail = (len > chunksz) ? chunksz : len;
|
||||
|
||||
Reference in New Issue
Block a user