]> sigrok.org Git - libsigrok.git/commit
rdtech-um: eliminate redundant data types in memory allocation
authorGerhard Sittig <redacted>
Wed, 15 Mar 2023 16:52:40 +0000 (17:52 +0100)
committerGerhard Sittig <redacted>
Thu, 16 Mar 2023 13:29:30 +0000 (14:29 +0100)
commitbc9aa94b92c5ac0271769af4605992d7a38e65bc
tree9dc31a997fa8c299c5a6ed39cba6baae66f2786d
parentc1f4f5894782580e78c47b68b9e2d0da2723e829
rdtech-um: eliminate redundant data types in memory allocation

Just allocate the size of the involved variable. Eliminate redundant
data type specs where inconsistency would go unnoticed.

Link the device context earlier to the device instance while we are
here. Immediately after allocation of the dynamic memory so that the
relation remains obvious.
src/hardware/rdtech-um/api.c