]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - examples/eepro100_eeprom.c
(no commit message)
[karo-tx-uboot.git] / examples / eepro100_eeprom.c
index 020c31d2f53543846417d446d7fc82feca93eed8..a52e68d4e719c22440f342713dfe6d192291358a 100644 (file)
@@ -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;
 }