OSDN Git Service

sysbus: Remove ignored return value of FindSysbusDeviceFunc
authorDavid Gibson <david@gibson.dropbear.id.au>
Wed, 21 Sep 2016 05:23:53 +0000 (15:23 +1000)
committerEduardo Habkost <ehabkost@redhat.com>
Tue, 27 Sep 2016 20:03:34 +0000 (17:03 -0300)
commit4f01a637795af77f1c191230b9f6e3a2547b0c28
treee04a3c366919df426aa38a1a51876f660e4e4e7c
parent55c911a58069e3742d35462d8c4e961dd6a2ba93
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>
hw/arm/sysbus-fdt.c
hw/core/machine.c
hw/core/platform-bus.c
hw/ppc/e500.c
hw/ppc/spapr.c
include/hw/sysbus.h