]> sigrok.org Git - libsigrok.git/commit
output/srzip: reduce text line length, remove "dead code"
authorGerhard Sittig <redacted>
Fri, 29 Dec 2023 11:39:05 +0000 (12:39 +0100)
committerGerhard Sittig <redacted>
Fri, 29 Dec 2023 20:23:47 +0000 (21:23 +0100)
commitda175133ede9385cb4555f1e326333100abb35a2
tree95c68d60515b79cd49ab7ec42de3d3fcb208daec
parent5c52d96a3bd14aa7870e9d506ed40b3e4e8e73a6
output/srzip: reduce text line length, remove "dead code"

Move an instruction to reduce its text line length. Also happens to put
the calculation of remaining buffer space and the current write position
in closer proximity, improving maintainability in the process.

Remove an assignment after appending to the archive and before iterating
the input samples loop again. Eliminates code that never took effect.
The value gets determined at the loop body's start anyway.
src/output/srzip.c