]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/misc/aspeed_hace: Extract digest write and iov unmap into helper function
authorJamin Lin <jamin_lin@aspeedtech.com>
Thu, 15 May 2025 08:09:38 +0000 (16:09 +0800)
committerCédric Le Goater <clg@redhat.com>
Sun, 25 May 2025 21:39:11 +0000 (23:39 +0200)
commit047941978508e68215d01cc0e3e5408c430e9e9f
tree35dfc504cb4bf46316f8e3a75cc290d1f2da2ea6
parent0b7dd5f9910c41d9a3faa51001b018a06f0c3ac7
hw/misc/aspeed_hace: Extract digest write and iov unmap into helper function

To improve code readability and maintainability of do_hash_operation(), this
commit introduces a new helper function: hash_write_digest_and_unmap_iov().

The helper consolidates the final digest writeback and subsequent unmapping of
the I/O vectors into a single routine.

No functional changes are introduced.

Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Link: https://lore.kernel.org/qemu-devel/20250515081008.583578-7-jamin_lin@aspeedtech.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/misc/aspeed_hace.c