libblkid: topology/ioctl: simplify ioctl handling
authorThomas Weißschuh <thomas@t-8ch.de>
Thu, 4 Apr 2024 05:24:58 +0000 (07:24 +0200)
committerChris Hofstaedtler <zeha@debian.org>
Sat, 27 Apr 2024 12:23:31 +0000 (14:23 +0200)
commit7616cedf0cd546dd672d70bdc4316e32723eaab4
tree7407f8ae090b43544a8ba07d0b416c4ca2da390d
parentdf169b1a08b886ccf87187c76615bdfa2c9a1f82
libblkid: topology/ioctl: simplify ioctl handling

Coverity complains about the data copy within the union.
Instead unroll the loop which is less code and easier to follow.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
(cherry picked from commit 2ab95860db0b7423906911b8b9e9f231332c2c11)

Gbp-Pq: Topic upstream
Gbp-Pq: Name libblkid-topology-ioctl-simplify-ioctl-handling.patch
libblkid/src/topology/ioctl.c