[U-Boot] [PATCH] usb: gadget: dfu: discard dead code
Tom Rini
trini at konsulko.com
Tue May 3 23:29:17 CEST 2016
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 at gmail.com>
> Cc: "Łukasz Majewski" <l.majewski at samsung.com>
> Cc: Marek Vasut <marex at denx.de>
Reviewed-by: Tom Rini <trini at konsulko.com>
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160503/2817cdbb/attachment.sig>
More information about the U-Boot
mailing list