str71x: fix previous commit
fix build issue with 70226c221f
commit
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
This commit is contained in:
parent
282e89c878
commit
909130e16e
|
@ -498,9 +498,6 @@ static int str7x_write(struct flash_bank *bank, uint8_t *buffer,
|
||||||
/* if block write failed (no sufficient working area),
|
/* if block write failed (no sufficient working area),
|
||||||
* we use normal (slow) single dword accesses */
|
* we use normal (slow) single dword accesses */
|
||||||
LOG_WARNING("couldn't use block writes, falling back to single memory accesses");
|
LOG_WARNING("couldn't use block writes, falling back to single memory accesses");
|
||||||
} else
|
|
||||||
{
|
|
||||||
return retval;
|
|
||||||
}
|
}
|
||||||
else if (retval == ERROR_FLASH_OPERATION_FAILED)
|
else if (retval == ERROR_FLASH_OPERATION_FAILED)
|
||||||
{
|
{
|
||||||
|
@ -510,6 +507,10 @@ static int str7x_write(struct flash_bank *bank, uint8_t *buffer,
|
||||||
LOG_ERROR("flash writing failed with error code: 0x%x", retval);
|
LOG_ERROR("flash writing failed with error code: 0x%x", retval);
|
||||||
return ERROR_FLASH_OPERATION_FAILED;
|
return ERROR_FLASH_OPERATION_FAILED;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return retval;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue