]> sigrok.org Git - libsigrok.git/commit
asix-sigma: style nits, expression complexity, information locality
authorGerhard Sittig <redacted>
Fri, 15 May 2020 07:06:40 +0000 (09:06 +0200)
committerGerhard Sittig <redacted>
Fri, 29 May 2020 06:06:18 +0000 (08:06 +0200)
commit5c231fc466fac5da4b24f79a29af7a3fa0a10f76
tree833b4f680855674b714567394a45759ba373c94a
parent9334ed6ccd219934e288d9833ae7f684e21a8fd7
asix-sigma: style nits, expression complexity, information locality

Address minor style nits to improve readability and simplify review. The
sizeof() expressions need not duplicate data type details. Concentrate
the assignment to, update of, and evaluation of variables in closer
proximity to reduce potential for errors during maintenance. Separate
the gathering of input data and the check for their availability from
each other, to simplify expressions and better reflect the logic's flow.
src/hardware/asix-sigma/api.c
src/hardware/asix-sigma/protocol.c