Re: [PATCH v9 14/23] x86/virt/seamldr: Shut down the current TDX module

From: Dave Hansen

Date: Tue May 19 2026 - 12:31:58 EST


On 5/19/26 05:05, Chao Gao wrote:
>> Why not just WARN_ON_ONCE(get_tdx_sys_info_handoff(&handoff));
>> And we can drop the ret var. Save 2 LOC.
> Dave had a different preference here:
>
> https://lore.kernel.org/kvm/8b9d7fa7-6534-48e7-a4fa-c21260b1c762@xxxxxxxxx/

I almost never optimize for lines of code.

The _only_ reason to worry about it is when you have a chunk of logic
that's having issues fitting on a "screen". There, squishing a few lines
together can mean the difference between seeing a whole loop on one
screen or having to page around.

But, at the point you're doing *that*, you probably need to think about
refactoring anyway.