]> sigrok.org Git - libsigrok.git/commit
kingst-la2016: rephrase 'sdi' resource release during scan
authorGerhard Sittig <redacted>
Thu, 5 Oct 2023 16:11:18 +0000 (18:11 +0200)
committerGerhard Sittig <redacted>
Mon, 16 Oct 2023 20:19:28 +0000 (22:19 +0200)
commit683f977e266eea4958839c561888f0f96c043ab6
tree3baddb879f2b51a97a3295ef585b2857b0b85e1a
parent5bc8174531df86991ba8aa6d12942923925d9e72
kingst-la2016: rephrase 'sdi' resource release during scan

Eliminate an incomplete local copy of sdi resource release code in an
error path of scan/probe. Use common code instead to free the sdi.

Assign opaque pointers to intermediate variables before passing their
values to other routines. Should slightly increase readability and
data type safety. Also close the USB handle if it's open at this time.
src/hardware/kingst-la2016/api.c