]> www.infradead.org Git - users/dwmw2/qemu.git/commit
hw/sd: Remove unused SDState::enable
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 28 Jan 2025 10:45:19 +0000 (10:45 +0000)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 31 Jan 2025 18:36:44 +0000 (19:36 +0100)
commitaa0cbf85f3f0b949f61e7aead9902fb6eaee29a8
treeb4c0170b532f71ff2d909f145d8ac85c210c71ea
parentbda21477f523622a2c904a3fa80fd6b485b22bff
hw/sd: Remove unused SDState::enable

Now that sd_enable() has been removed, SD::enable is set to true in
sd_instance_init() and then never changed. So we can remove it.

Note that the VMSTATE_UNUSED() size argument should be '1', not
'sizeof(bool)', as noted in the CAUTION comment in vmstate.h.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20250128104519.3981448-12-peter.maydell@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
hw/sd/sd.c