summaryrefslogtreecommitdiff
path: root/examples/eepro100_eeprom.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@pollux.(none)>2005-12-12 16:06:05 +0100
committerWolfgang Denk <wd@pollux.(none)>2005-12-12 16:06:05 +0100
commit7481266e4e4a1488ab197cc7beecd6eda0c34ffb (patch)
tree815742a284bfb6ccdd47df0e317e61baa7322645 /examples/eepro100_eeprom.c
parenta889bd27ef2a9c01eb5b10d067765545781efa0a (diff)
downloadu-boot-imx-7481266e4e4a1488ab197cc7beecd6eda0c34ffb.zip
u-boot-imx-7481266e4e4a1488ab197cc7beecd6eda0c34ffb.tar.gz
u-boot-imx-7481266e4e4a1488ab197cc7beecd6eda0c34ffb.tar.bz2
Diffstat (limited to 'examples/eepro100_eeprom.c')
-rw-r--r--examples/eepro100_eeprom.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/eepro100_eeprom.c b/examples/eepro100_eeprom.c
index 020c31d..a52e68d 100644
--- 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;
}