Searched hist:d8d160e4205aa2885cfe659102c9555ef0859fae (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/drivers/misc/ |
| H A D | mxs_ocotp.c | d8d160e4205aa2885cfe659102c9555ef0859fae Fri Nov 21 16:54:42 UTC 2014 Hector Palacios <hector.palacios@digi.com> mxs_ocotp: prevent error path from returning success
The code may goto 'fail' upon error with 'ret' variable set to an error code, but this variable was being overwritten by a final preparation function to restore the HCLK, so success was (in general) returned even after an error was hit previously.
With this change, the function may now return success even if the final preparation function fails, but it's probably enough to print a message because (if successful) the real programming of the fuses has already completed.
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
|