rockchip: mkimage: remove (left-over) assignment w/o effect [coverity]
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
@@ -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
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).
Signed-off-by Philipp Tomsich <[email protected]>
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>
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).
Signed-off-by Philipp Tomsich <[email protected]>Reported-by Coverity (CID: 161418)Reviewed-by Tom Rini <[email protected]>
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>