
3 May
2016
3 May
'16
11:29 p.m.
On Tue, May 03, 2016 at 10:25:22AM +0800, Peng Fan wrote:
Reported by Coverity: Logically dead code (DEADCODE) dead_error_line: Execution cannot reach this statement: (f_dfu->strings + --i).s = ....
If calloc failed, i is still 0 and no need to call free, so discard the dead code.
Signed-off-by: Peng Fan van.freenix@gmail.com Cc: "Łukasz Majewski" l.majewski@samsung.com Cc: Marek Vasut marex@denx.de
Reviewed-by: Tom Rini trini@konsulko.com
--
Tom