Skip to contentSkip to conversation

Change return type of functions that are named *_exit or *_exitfn in hw/core from int to void

PATCH In review Nutan Shinde 1 participant 1 message Apr 12, 2016 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH v2 3/5 Change return type of functions that are named *_exit or *_exitfn in hw/core from int to void

This 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.

---
 hw/core/qdev.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
hw/core/qdev.c +0 -0
index db41aa1..7495fcf 100644
@@ -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