]> xenbits.xensource.com Git - libvirt.git/commitdiff
hyperv/: Remove spaces after casts
authorMartin Kletzander <mkletzan@redhat.com>
Wed, 25 Apr 2018 12:42:33 +0000 (14:42 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Thu, 3 May 2018 20:31:36 +0000 (22:31 +0200)
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/hyperv/hyperv_driver.c
src/hyperv/hyperv_wmi.c

index d02c0ac3734e7c6ef905cad493bdb4c6bc14fdf3..95496bdf7311248f627cf38d7fd969c99fece3ef 100644 (file)
@@ -1466,8 +1466,8 @@ hypervDomainSendKey(virDomainPtr domain, unsigned int codeset,
  cleanup:
     VIR_FREE(translatedKeycodes);
     VIR_FREE(selector);
-    hypervFreeObject(priv, (hypervObject *) keyboard);
-    hypervFreeObject(priv, (hypervObject *) computerSystem);
+    hypervFreeObject(priv, (hypervObject *)keyboard);
+    hypervFreeObject(priv, (hypervObject *)computerSystem);
     virBufferFreeAndReset(&query);
     return result;
 }
@@ -1572,8 +1572,8 @@ hypervDomainSetMemoryFlags(virDomainPtr domain, unsigned long memory,
     virBufferFreeAndReset(&eprQuery);
  cleanup:
     VIR_FREE(memory_str);
-    hypervFreeObject(priv, (hypervObject *) vssd);
-    hypervFreeObject(priv, (hypervObject *) memsd);
+    hypervFreeObject(priv, (hypervObject *)vssd);
+    hypervFreeObject(priv, (hypervObject *)memsd);
     return result;
 }
 
index 5e2b3d7edf5b57eddc9fb09bcd4b33e7408984a6..0f39bd443134b2c96dfc7279b3a32295ad214421 100644 (file)
@@ -907,7 +907,7 @@ hypervInvokeMethod(hypervPrivate *priv, hypervInvokeParamsListPtr params,
                 case MSVM_CONCRETEJOB_JOBSTATE_STARTING:
                 case MSVM_CONCRETEJOB_JOBSTATE_RUNNING:
                 case MSVM_CONCRETEJOB_JOBSTATE_SHUTTING_DOWN:
-                    hypervFreeObject(priv, (hypervObject *) job);
+                    hypervFreeObject(priv, (hypervObject *)job);
                     job = NULL;
                     usleep(100 * 1000); /* sleep 100 ms */
                     timeout -= 100;
@@ -955,7 +955,7 @@ hypervInvokeMethod(hypervPrivate *priv, hypervInvokeParamsListPtr params,
     VIR_FREE(returnValue);
     VIR_FREE(instanceID);
     virBufferFreeAndReset(&query);
-    hypervFreeObject(priv, (hypervObject *) job);
+    hypervFreeObject(priv, (hypervObject *)job);
     hypervFreeInvokeParams(params);
     return result;
 }
@@ -1254,7 +1254,7 @@ hypervGetMsvmComputerSystemList(hypervPrivate *priv, virBufferPtr query,
                                 Msvm_ComputerSystem **list)
 {
     return hypervGetWmiClassList(priv, Msvm_ComputerSystem_WmiInfo, query,
-                                 (hypervObject **) list);
+                                 (hypervObject **)list);
 }
 
 int
@@ -1262,7 +1262,7 @@ hypervGetMsvmConcreteJobList(hypervPrivate *priv, virBufferPtr query,
                              Msvm_ConcreteJob **list)
 {
     return hypervGetWmiClassList(priv, Msvm_ConcreteJob_WmiInfo, query,
-                                 (hypervObject **) list);
+                                 (hypervObject **)list);
 }
 
 int
@@ -1270,7 +1270,7 @@ hypervGetWin32ComputerSystemList(hypervPrivate *priv, virBufferPtr query,
                                  Win32_ComputerSystem **list)
 {
     return hypervGetWmiClassList(priv, Win32_ComputerSystem_WmiInfo, query,
-                                 (hypervObject **) list);
+                                 (hypervObject **)list);
 }
 
 int
@@ -1278,7 +1278,7 @@ hypervGetWin32ProcessorList(hypervPrivate *priv, virBufferPtr query,
                             Win32_Processor **list)
 {
     return hypervGetWmiClassList(priv, Win32_Processor_WmiInfo, query,
-                                 (hypervObject **) list);
+                                 (hypervObject **)list);
 }
 
 int
@@ -1287,7 +1287,7 @@ hypervGetMsvmVirtualSystemSettingDataList(hypervPrivate *priv,
                                           Msvm_VirtualSystemSettingData **list)
 {
     return hypervGetWmiClassList(priv, Msvm_VirtualSystemSettingData_WmiInfo, query,
-                                 (hypervObject **) list);
+                                 (hypervObject **)list);
 }
 
 int
@@ -1296,7 +1296,7 @@ hypervGetMsvmProcessorSettingDataList(hypervPrivate *priv,
                                       Msvm_ProcessorSettingData **list)
 {
     return hypervGetWmiClassList(priv, Msvm_ProcessorSettingData_WmiInfo, query,
-                                 (hypervObject **) list);
+                                 (hypervObject **)list);
 }
 
 int
@@ -1304,14 +1304,14 @@ hypervGetMsvmMemorySettingDataList(hypervPrivate *priv, virBufferPtr query,
                                    Msvm_MemorySettingData **list)
 {
     return hypervGetWmiClassList(priv, Msvm_MemorySettingData_WmiInfo, query,
-                                 (hypervObject **) list);
+                                 (hypervObject **)list);
 }
 
 int hypervGetMsvmKeyboardList(hypervPrivate *priv, virBufferPtr query,
                               Msvm_Keyboard **list)
 {
     return hypervGetWmiClassList(priv, Msvm_Keyboard_WmiInfo, query,
-                                 (hypervObject **) list);
+                                 (hypervObject **)list);
 }
 
 
@@ -1621,7 +1621,7 @@ hypervGetMsvmVirtualSystemSettingDataFromUUID(hypervPrivate *priv,
             uuid_string);
 
     if (hypervGetWmiClassList(priv, Msvm_VirtualSystemSettingData_WmiInfo, &query,
-                (hypervObject **) list) < 0 || *list == NULL)
+                (hypervObject **)list) < 0 || *list == NULL)
         return -1;
 
     return 0;
@@ -1646,7 +1646,7 @@ hypervGetMsvmMemorySettingDataFromVSSD(hypervPrivate *priv,
             vssd_instanceid);
 
     if (hypervGetWmiClassList(priv, Msvm_MemorySettingData_WmiInfo, &query,
-                (hypervObject **) list) < 0 || *list == NULL)
+                (hypervObject **)list) < 0 || *list == NULL)
         return -1;
 
     return 0;