OSDN Git Service

hw/ide: Extract IDEBus assignment into bmdma_init()
authorBernhard Beschow <shentey@gmail.com>
Wed, 31 May 2023 21:10:40 +0000 (23:10 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 10 Jul 2023 22:11:25 +0000 (00:11 +0200)
commitbf0576edd71cf4f70352cc8de1cc914b419b36ff
tree15f1072822a967730f745b8a5437a7d18649688e
parent4e5a20b6da9b1f6d2e9621ed7eb8b239560104ae
hw/ide: Extract IDEBus assignment into bmdma_init()

Every invocation of bmdma_init() is followed by `d->bmdma[i].bus = &d->bus[i]`.
Resolve this redundancy by extracting it into bmdma_init().

Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Reviewed-by: BALATON Zoltan <balaton@eik.bme.hu>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Message-Id: <20230531211043.41724-5-shentey@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
hw/ide/cmd646.c
hw/ide/pci.c
hw/ide/piix.c
hw/ide/sii3112.c
hw/ide/via.c