mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-22 04:25:21 +00:00
1ce1fe7334
Make the code more idiomatic by wrapping the actual size configured in the returning Result type. This further allows simplifying get_buffer_size. The debug message in startup_tpm is more useful if it prints out the actual size than the wanted size. No functional change. Signed-off-by: Wei Liu <liuwe@microsoft.com>