From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Tue, 3 May 2016 17:29:17 -0400 Subject: [U-Boot] [PATCH] usb: gadget: dfu: discard dead code In-Reply-To: <1462242322-1107-1-git-send-email-van.freenix@gmail.com> References: <1462242322-1107-1-git-send-email-van.freenix@gmail.com> Message-ID: <20160503212917.GC7884@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > Cc: "?ukasz Majewski" > Cc: Marek Vasut Reviewed-by: Tom Rini -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: