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.free...@gmail.com> > Cc: "Ćukasz Majewski" <l.majew...@samsung.com> > Cc: Marek Vasut <ma...@denx.de>
Reviewed-by: Tom Rini <tr...@konsulko.com> -- Tom
signature.asc
Description: Digital signature
_______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot