]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/sd/sdcard: Factor sd_response_size() out
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 4 Aug 2025 09:32:44 +0000 (11:32 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 5 Aug 2025 14:05:56 +0000 (16:05 +0200)
commit3025ea65bd515196e871adc8959336c51b9d27bc
tree96600a76441fa941d3f34ca3b42680bcbe4b22a8
parent0a9a27305da030a83e65714f6ba202dbcaf448a3
hw/sd/sdcard: Factor sd_response_size() out

Set @rsplen once before switching to fill the response buffer.
This will allow to assert in a single place that the buffer is
big enough to be filled with the response.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20250804133406.17456-3-philmd@linaro.org>
hw/sd/sd.c