]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: topology/ioctl: simplify ioctl handling
authorThomas Weißschuh <thomas@t-8ch.de>
Thu, 4 Apr 2024 05:24:58 +0000 (07:24 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 5 Apr 2024 06:52:33 +0000 (08:52 +0200)
commitabae34dba21a74bc4338b8bbffef2d308c965b5d
tree28b56af09807e5198ebd4bcfbe051750ec328146
parentc15085d00d88bf0cfb9043214d44ee542297d9ef
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)
libblkid/src/topology/ioctl.c