Skip to contentSkip to conversation

rockchip: mkimage: remove (left-over) assignment w/o effect [coverity]

PATCH In review Philipp Tomsich 2 participants 3 messages Apr 19, 2017 – Apr 28, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rockchip: mkimage: remove (left-over) assignment w/o effect [coverity]

An assignment (of a value to itself) was left over (after removing and addition from the line) from moving the common padding code into rkcommon_vrec_header.

This change removes this to avoid a spurious warning in static code analysis (i.e. Coverity).

---

 tools/rkcommon.c | 1 -
 1 file changed, 1 deletion(-)
tools/rkcommon.c +0 -1
index 1316b9a..f4d932b 100644
@@ -376,7 +376,6 @@ int rkcommon_vrec_header(struct image_tool_params *params,
 	/* Allocate, clear and install the header */
 	tparams->hdr = malloc(tparams->header_size);
 	memset(tparams->hdr, 0, tparams->header_size);
-	tparams->header_size = tparams->header_size;
 
 	/*
 	 * If someone passed in 0 for the alignment, we'd better handle
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 rockchip: mkimage: remove (left-over) assignment w/o effect [coverity]

Quoted 8 lines · Philipp Tomsich

An assignment (of a value to itself) was left over (after removing and addition from the line) from moving the common padding code into rkcommon_vrec_header.

This change removes this to avoid a spurious warning in static code analysis (i.e. Coverity).

Reported-by Coverity (CID: 161418)

Thanks!

Signature · 8 lines
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/20170419/f05a857f/attachment.sig>
#2 lore raw
In reply to Philipp Tomsich
Quoted 10 lines · Philipp Tomsich

An assignment (of a value to itself) was left over (after removing and addition from the line) from moving the common padding code into rkcommon_vrec_header.

This change removes this to avoid a spurious warning in static code analysis (i.e. Coverity).

Reported-by Coverity (CID: 161418)

Applied to u-boot/master, thanks!

Signature · 8 lines
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/20170428/9e1d10e9/attachment.sig>