projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* Fixed a bug where 8555 PCI code used the old variable and function names Patch...
[oweals/u-boot.git]
/
examples
/
eepro100_eeprom.c
diff --git
a/examples/eepro100_eeprom.c
b/examples/eepro100_eeprom.c
index 020c31d2f53543846417d446d7fc82feca93eed8..a52e68d4e719c22440f342713dfe6d192291358a 100644
(file)
--- a/
examples/eepro100_eeprom.c
+++ b/
examples/eepro100_eeprom.c
@@
-79,7
+79,10
@@
static inline short inw(long addr)
static inline void *memcpy(void *dst, const void *src, unsigned int len)
{
char *ret = dst;
- while (len-- > 0) *(ret)++ = *((char *)src)++;
+ while (len-- > 0) {
+ *ret++ = *((char *)src);
+ src++;
+ }
return (void *)ret;
}