Change return type of functions that are named *_exit or *_exitfn in hw/core from int to void
PATCH v2 3/5 Change return type of functions that are named *_exit or *_exitfn in hw/core from int to void
In reply to a message not in the archiveThis change is required because the return type of exit(error) function is not used.
This patch only has changes for files in hw/core package.
Signed-off-by Nutan Shinde <[email protected]>
--- hw/core/qdev.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
hw/core/qdev.c +0 -0
@@ -237,11 +237,7 @@ static void device_unrealize(DeviceState *dev, Error
**errp)
DeviceClass *dc = DEVICE_GET_CLASS(dev);
if (dc->exit) {- int rc = dc->exit(dev);
- if (rc < 0) {
- error_setg(errp, "Device exit failed.");
- return;
- }
+ dc->exit(dev);
}}
--
1.9.1