summaryrefslogtreecommitdiff
path: root/src/flash/ocl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/flash/ocl.c')
-rw-r--r--src/flash/ocl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/flash/ocl.c b/src/flash/ocl.c
index 17b57a87..06cbbaad 100644
--- a/src/flash/ocl.c
+++ b/src/flash/ocl.c
@@ -139,7 +139,7 @@ static int ocl_erase(struct flash_bank_s *bank, int first, int last)
}
/* receive response */
- if ((retval = embeddedice_receive(ocl->jtag_info, dcc_buffer+1, 1) != ERROR_OK))
+ if ((retval = embeddedice_receive(ocl->jtag_info, dcc_buffer + 1, 1) != ERROR_OK))
return retval;
if (dcc_buffer[1] != OCL_CMD_DONE)
@@ -182,7 +182,7 @@ static int ocl_write(struct flash_bank_s *bank, uint8_t *buffer, uint32_t offset
}
/* allocate buffer for max. ocl buffer + overhead */
- dcc_buffer = malloc(sizeof(uint32_t)*(ocl->buflen/4+3));
+ dcc_buffer = malloc(sizeof(uint32_t)*(ocl->buflen/4 + 3));
while (count)
{