This is an automated email from Gerrit. Ole Wolf ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/2092
-- gerrit commit ae67b3d93f79b816452aab392dbc7a75047c52e3 Author: Ole Wolf <[email protected]> Date: Fri Apr 4 13:51:06 2014 +0200 sim3c166: more patch style errors fixed Change-Id: If83fb3cab5fd55e5f925fd13fe026db65dcd7a80 Signed-off-by: Ole Wolf <[email protected]> diff --git a/src/flash/nor/sim3c166.c b/src/flash/nor/sim3c166.c index 9ce5a48..079a43e 100644 --- a/src/flash/nor/sim3c166.c +++ b/src/flash/nor/sim3c166.c @@ -135,7 +135,7 @@ static int sim3c166_wait_status_busy(struct flash_bank *bank, int timeout) LOG_DEBUG("status: 0x%" PRIx32 "", status); if ((status & 0x00100000) == 0) break; - if (timeout-- <= 0) { + if (timeout-- <= 0) { LOG_ERROR("timed out waiting for flash"); return ERROR_FAIL; } @@ -144,14 +144,14 @@ static int sim3c166_wait_status_busy(struct flash_bank *bank, int timeout) /* if (status & FLASH_WRPRTERR) { - LOG_ERROR("sim3c166 device protected"); - retval = ERROR_FAIL; - } - - if (status & FLASH_PGERR) { - LOG_ERROR("sim3c166 device programming failed"); - retval = ERROR_FAIL; - } + LOG_ERROR("sim3c166 device protected"); + retval = ERROR_FAIL; + } + + if (status & FLASH_PGERR) { + LOG_ERROR("sim3c166 device programming failed"); + retval = ERROR_FAIL; + } */ /* Clear but report errors */ @@ -161,8 +161,8 @@ static int sim3c166_wait_status_busy(struct flash_bank *bank, int timeout) /* If this operation fails, we ignore it and report the original retval */ /* - target_write_u32(target, SIM3C166_FLASH_SR, FLASH_WRPRTERR | FLASH_PGERR); - } + target_write_u32(target, SIM3C166_FLASH_SR, FLASH_WRPRTERR | FLASH_PGERR); + } */ return retval; } -- ------------------------------------------------------------------------------ _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
