modpost: refactor do_vmbus_entry()
authorMasahiro Yamada <masahiroy@kernel.org>
Wed, 25 Dec 2024 15:33:36 +0000 (00:33 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sat, 28 Dec 2024 14:31:03 +0000 (23:31 +0900)
commite1352d7ead2b8803689823cd4059c1ec72609ed4
tree061b8d24641ba9ed237c8dda90d364de606855ef
parentbf36b4bf1b9a7a0015610e2f038ee84ddb085de2
modpost: refactor do_vmbus_entry()

Optimize the size of guid_name[], as it only requires 1 additional byte
for '\0' instead of 2.

Simplify the loop by incrementing the iterator by 1 instead of 2.

Remove the unnecessary TO_NATIVE() call, as the guid is represented as
a byte stream.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Tested-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
scripts/mod/file2alias.c