qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 11/11] hw/sd: Remove unused SDState::enable


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH 11/11] hw/sd: Remove unused SDState::enable
Date: Thu, 30 Jan 2025 23:15:38 +0100
User-agent: Mozilla Thunderbird

On 28/1/25 11:45, Peter Maydell wrote:
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>
---
  hw/sd/sd.c | 16 ++++++++--------
  1 file changed, 8 insertions(+), 8 deletions(-)

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]