commit | 46ed88cad14979aab35e34faf8caeb246b086ea9 | [log] [tgz] |
---|---|---|
author | Peng Fan <van.freenix@gmail.com> | Tue May 03 10:25:22 2016 +0800 |
committer | Marek Vasut <marex@denx.de> | Fri May 06 20:06:56 2016 +0200 |
tree | 9de667e11fc40a911dd7b2ed1351347d0c905472 | |
parent | 529d4fd90c5b7b06a0d180ea338a052b2bcf29c7 [diff] |
usb: gadget: dfu: discard dead code 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>