]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/ml2/flash.c
Code cleanup: fix old style assignment ambiguities like "=-" etc.
[karo-tx-uboot.git] / board / ml2 / flash.c
index 87cb1ff18e1f76a4389c826bbe446442b526da86..ad0f0752bbfb8e54c999526fde29724f22e18d4f 100644 (file)
@@ -222,7 +222,7 @@ static int write_word (flash_info_t *info, ulong dest, unsigned long long data)
        unsigned long long result;
        int rc = ERR_OK;
 
-       result=*addr;
+       result = *addr;
        if ((result & data) != data)
                return ERR_NOT_ERASED;
 
@@ -234,7 +234,7 @@ static int write_word (flash_info_t *info, ulong dest, unsigned long long data)
        eieio();
 
        do {
-               result=*addr;
+               result = *addr;
        } while(~result & BIT_BUSY);
 
        *addr=CMD_READ_ARRAY;
@@ -275,7 +275,7 @@ int write_buff (flash_info_t *info, uchar *src, ulong addr, ulong cnt) {
        }
 
        while(cnt>=8) {
-               data=*((unsigned long long *)src);
+               data = *((unsigned long long *)src);
                if ((rc = write_word(info, wp, data)) != 0)
                        return rc;
                src+=8;