]> xenbits.xensource.com Git - libvirt.git/commitdiff
storage_util: Some code cleanup
authorJohn Ferlan <jferlan@redhat.com>
Wed, 18 Apr 2018 16:23:04 +0000 (12:23 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 15 May 2018 20:54:58 +0000 (16:54 -0400)
Perform some code cleanup in areas that are about to be altered.

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/storage/storage_util.c

index bc048e3dffdc167a83ae646b4128a2e2ade54ade..4fddbf3f9ef1bfd6f93ac8d843405735ffe3ec4b 100644 (file)
@@ -874,7 +874,7 @@ storageBackendCreateQemuImgOpts(virStorageEncryptionInfoDefPtr enc,
 
 /* storageBackendCreateQemuImgCheckEncryption:
  * @format: format of file found
- * @conn: pointer to connection
+ * @type: TypeToString of format.type
  * @vol: pointer to volume def
  *
  * Ensure the proper setup for encryption.
@@ -1199,11 +1199,9 @@ virStorageBackendCreateQemuImgCmdFromVol(virStoragePoolObjPtr pool,
         return NULL;
 
     if (info.encryption &&
-        storageBackendCreateQemuImgCheckEncryption(info.format, type,
-                                                   vol) < 0)
+        storageBackendCreateQemuImgCheckEncryption(info.format, type, vol) < 0)
         return NULL;
 
-
     /* Size in KB */
     info.size_arg = VIR_DIV_UP(vol->target.capacity, 1024);