]> sigrok.org Git - libsigrok.git/commit
rdtech-tc: eliminate redundant type info in malloc call
authorGerhard Sittig <redacted>
Thu, 16 Mar 2023 02:25:00 +0000 (03:25 +0100)
committerGerhard Sittig <redacted>
Thu, 16 Mar 2023 13:29:30 +0000 (14:29 +0100)
commit5df2033d7f91794f502ad3c24a2dc28d506ec2a8
tree5def51a66b68c78545df0a70392c3b36c0265f6b
parentc1f9428a6c95e639e3d613738b6a2b08c8496ee0
rdtech-tc: eliminate redundant type info in malloc call

Allocate whatever it takes to hold the variable. Don't open code the
type information again when inconsistency would go unnoticed.

Link devc earlier to sdi, ideally immediately after allocation.
src/hardware/rdtech-tc/api.c