]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: monitor: s/ret/rc/ in UpdateVideoSize functions
authorJán Tomko <jtomko@redhat.com>
Fri, 14 Jun 2019 19:40:19 +0000 (21:40 +0200)
committerJán Tomko <jtomko@redhat.com>
Thu, 20 Jun 2019 11:47:41 +0000 (13:47 +0200)
Use 'rc' to temporarily store the subfunction return values,
instead of ret.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Acked-by: Peter Krempa <pkrempa@redhat.com>
src/qemu/qemu_monitor.c

index a292455d4b70af02903fb6d2a45d6a0811ae7eb1..731be2e5a66ed6999ecd57085b2d95fccc10ac94 100644 (file)
@@ -1204,15 +1204,15 @@ qemuMonitorUpdateVideoMemorySize(qemuMonitorPtr mon,
                                  virDomainVideoDefPtr video,
                                  const char *videoName)
 {
-    int ret = -1;
+    int rc = -1;
     VIR_AUTOFREE(char *) path = NULL;
 
     QEMU_CHECK_MONITOR(mon);
 
-    ret = qemuMonitorJSONFindLinkPath(mon, videoName,
-                                      video->info.alias, &path);
-    if (ret < 0) {
-        if (ret == -2)
+    rc = qemuMonitorJSONFindLinkPath(mon, videoName,
+                                     video->info.alias, &path);
+    if (rc < 0) {
+        if (rc == -2)
             virReportError(VIR_ERR_INTERNAL_ERROR,
                            _("Failed to find QOM Object path for "
                              "device '%s'"), videoName);
@@ -1234,15 +1234,15 @@ qemuMonitorUpdateVideoVram64Size(qemuMonitorPtr mon,
                                  virDomainVideoDefPtr video,
                                  const char *videoName)
 {
-    int ret = -1;
+    int rc = -1;
     VIR_AUTOFREE(char *) path = NULL;
 
     QEMU_CHECK_MONITOR(mon);
 
-    ret = qemuMonitorJSONFindLinkPath(mon, videoName,
-                                      video->info.alias, &path);
-    if (ret < 0) {
-        if (ret == -2)
+    rc = qemuMonitorJSONFindLinkPath(mon, videoName,
+                                     video->info.alias, &path);
+    if (rc < 0) {
+        if (rc == -2)
             virReportError(VIR_ERR_INTERNAL_ERROR,
                            _("Failed to find QOM Object path for "
                              "device '%s'"), videoName);