diff options
author | Wolfgang Denk <wd@denx.de> | 2008-07-14 15:19:07 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-07-14 15:19:07 +0200 |
commit | d0ff51ba5d0309dbe9e25ea54f8a0285a6d5db90 (patch) | |
tree | f751c45fa698dd14edd985b80ae16ad521768457 /board/ml2 | |
parent | d7854223c5c85b5849fbf422cc8ac0efef461c37 (diff) | |
download | bootable_bootloader_goldelico_gta04-d0ff51ba5d0309dbe9e25ea54f8a0285a6d5db90.zip bootable_bootloader_goldelico_gta04-d0ff51ba5d0309dbe9e25ea54f8a0285a6d5db90.tar.gz bootable_bootloader_goldelico_gta04-d0ff51ba5d0309dbe9e25ea54f8a0285a6d5db90.tar.bz2 |
Code cleanup: fix old style assignment ambiguities like "=-" etc.
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'board/ml2')
-rw-r--r-- | board/ml2/flash.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/board/ml2/flash.c b/board/ml2/flash.c index 87cb1ff..ad0f075 100644 --- a/board/ml2/flash.c +++ b/board/ml2/flash.c @@ -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; |