[PATCH 02/15] vbox: Drop @mediaChangeOnly from vboxDomainAttachDeviceImpl()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The @mediaChangeOnly argument of vboxDomainAttachDeviceImpl()
function is unused. Drop it.

Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
---
 src/vbox/vbox_common.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/vbox/vbox_common.c b/src/vbox/vbox_common.c
index 939f9e8fb9..ea3a54b7c9 100644
--- a/src/vbox/vbox_common.c
+++ b/src/vbox/vbox_common.c
@@ -4196,9 +4196,9 @@ static int vboxConnectNumOfDefinedDomains(virConnectPtr conn)
     return ret;
 }
 
-static int vboxDomainAttachDeviceImpl(virDomainPtr dom,
-                                      const char *xml,
-                                      int mediaChangeOnly G_GNUC_UNUSED)
+static int
+vboxDomainAttachDeviceImpl(virDomainPtr dom,
+                           const char *xml)
 {
     struct _vboxDriver *data = dom->conn->privateData;
     IMachine *machine = NULL;
@@ -4289,7 +4289,7 @@ static int vboxDomainAttachDeviceImpl(virDomainPtr dom,
 
 static int vboxDomainAttachDevice(virDomainPtr dom, const char *xml)
 {
-    return vboxDomainAttachDeviceImpl(dom, xml, 0);
+    return vboxDomainAttachDeviceImpl(dom, xml);
 }
 
 static int vboxDomainAttachDeviceFlags(virDomainPtr dom, const char *xml,
@@ -4297,7 +4297,7 @@ static int vboxDomainAttachDeviceFlags(virDomainPtr dom, const char *xml,
 {
     virCheckFlags(VIR_DOMAIN_AFFECT_LIVE, -1);
 
-    return vboxDomainAttachDeviceImpl(dom, xml, 0);
+    return vboxDomainAttachDeviceImpl(dom, xml);
 }
 
 static int vboxDomainUpdateDeviceFlags(virDomainPtr dom, const char *xml,
@@ -4313,7 +4313,7 @@ static int vboxDomainUpdateDeviceFlags(virDomainPtr dom, const char *xml,
         return -1;
     }
 
-    return vboxDomainAttachDeviceImpl(dom, xml, 1);
+    return vboxDomainAttachDeviceImpl(dom, xml);
 }
 
 static int vboxDomainDetachDevice(virDomainPtr dom, const char *xml)
-- 
2.39.1




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux