]> sigrok.org Git - libsigrok.git/commit - src/hardware/kingst-la2016/api.c
kingst-la2016: separate complex calls from caller's control flow
authorGerhard Sittig <redacted>
Sun, 23 Jan 2022 19:46:54 +0000 (20:46 +0100)
committerGerhard Sittig <redacted>
Sun, 6 Feb 2022 17:53:53 +0000 (18:53 +0100)
commit411ad77c05aca0fe83e9cde2f87ab476f8d7d2ff
treebd5cbcf6f0884900a9c4e879b9036cf3929b13c7
parent480efba284cbf84801af16d1997ce853d7fe5c63
kingst-la2016: separate complex calls from caller's control flow

Don't mix complex invocations with their evaluation of the return value
and change of flow in the source code. This is even more important for
indented multi-line argument lists and indented conditional branches
which follow. As a byproduct this reduces text line length and further
increases readability. Break other long lines. This commit picks low
hanging fruit, leaves more complex cases for another commit.
src/hardware/kingst-la2016/api.c
src/hardware/kingst-la2016/protocol.c