mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-11 16:00:50 -07:00
sysbus: Remove ignored return value of FindSysbusDeviceFunc
Functions of type FindSysbusDeviceFunc currently return an integer. However, this return value is always ignored by the caller in find_sysbus_device(). This changes the function type to return void, to avoid confusion over the function semantics. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Eduardo Habkost <ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
55c911a580
commit
4f01a63779
6 changed files with 8 additions and 16 deletions
|
|
@ -75,7 +75,7 @@ struct SysBusDevice {
|
|||
uint32_t pio[QDEV_MAX_PIO];
|
||||
};
|
||||
|
||||
typedef int FindSysbusDeviceFunc(SysBusDevice *sbdev, void *opaque);
|
||||
typedef void FindSysbusDeviceFunc(SysBusDevice *sbdev, void *opaque);
|
||||
|
||||
void sysbus_init_mmio(SysBusDevice *dev, MemoryRegion *memory);
|
||||
MemoryRegion *sysbus_mmio_get_region(SysBusDevice *dev, int n);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue