[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 2/7] hw/acpi/ich9: Remove unneeded assignments
From: |
Igor Mammedov |
Subject: |
Re: [PATCH 2/7] hw/acpi/ich9: Remove unneeded assignments |
Date: |
Tue, 24 Jan 2023 17:55:37 +0100 |
On Sun, 22 Jan 2023 18:07:19 +0100
Bernhard Beschow <shentey@gmail.com> wrote:
> The first thing ich9_pm_iospace_update() does is to set pm->pm_io_base to
> the pm_io_base parameter.
try to explain why 'pm->pm_io_base = 0' was there , what's changed
and then why it's no longer needed.
> The pm_io_base parameter's value is the old
> one of pm->pm_io_base.
I can't parse this sentence.
fixes: cacaab8bdd7460
>
> Signed-off-by: Bernhard Beschow <shentey@gmail.com>
> ---
> hw/acpi/ich9.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/hw/acpi/ich9.c b/hw/acpi/ich9.c
> index 2050af67b9..0313e71e74 100644
> --- a/hw/acpi/ich9.c
> +++ b/hw/acpi/ich9.c
> @@ -136,9 +136,7 @@ void ich9_pm_iospace_update(ICH9LPCPMRegs *pm, uint32_t
> pm_io_base)
> static int ich9_pm_post_load(void *opaque, int version_id)
> {
> ICH9LPCPMRegs *pm = opaque;
> - uint32_t pm_io_base = pm->pm_io_base;
> - pm->pm_io_base = 0;
> - ich9_pm_iospace_update(pm, pm_io_base);
> + ich9_pm_iospace_update(pm, pm->pm_io_base);
> return 0;
> }
>
[PATCH 4/7] hw/acpi/ich9: Use ICH9_PMIO_GPE0_STS just once, Bernhard Beschow, 2023/01/22
[PATCH 5/7] hw/acpi/piix4: Fix offset of GPE0 registers, Bernhard Beschow, 2023/01/22