summaryrefslogtreecommitdiff
path: root/src/flash/cfi.c
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-03-07 16:18:56 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-03-07 16:18:56 +0000
commitd3f3f6149867c6ccd5d10ac469df1d7af95cbf19 (patch)
tree01639019fa8733355e2188c69ce3103a528ea51b /src/flash/cfi.c
parent081bc0611209ff2d78857a2e9430b77ed7766963 (diff)
downloadopenocd+libswd-d3f3f6149867c6ccd5d10ac469df1d7af95cbf19.tar.gz
openocd+libswd-d3f3f6149867c6ccd5d10ac469df1d7af95cbf19.tar.bz2
openocd+libswd-d3f3f6149867c6ccd5d10ac469df1d7af95cbf19.tar.xz
openocd+libswd-d3f3f6149867c6ccd5d10ac469df1d7af95cbf19.zip
Michael Bruck: fixed warnings
git-svn-id: svn://svn.berlios.de/openocd/trunk@471 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/flash/cfi.c')
-rw-r--r--src/flash/cfi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/flash/cfi.c b/src/flash/cfi.c
index f4968a8b..904de9cc 100644
--- a/src/flash/cfi.c
+++ b/src/flash/cfi.c
@@ -1729,7 +1729,9 @@ int cfi_write(struct flash_bank_s *bank, u8 *buffer, u32 offset, u32 count)
if (retval == ERROR_TARGET_RESOURCE_NOT_AVAILABLE)
{
u32 buffersize = 1UL << cfi_info->max_buf_write_size;
+#if 0
u32 buffermask = buffersize-1;
+#endif
u32 bufferwsize;
switch(bank->chip_width)