From: John Ferlan Date: Wed, 18 Apr 2018 16:23:04 +0000 (-0400) Subject: storage_util: Some code cleanup X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=9cfd507367fa70795affc4cca9e71566bbe61cb5;p=libvirt.git storage_util: Some code cleanup Perform some code cleanup in areas that are about to be altered. Signed-off-by: John Ferlan --- diff --git a/src/storage/storage_util.c b/src/storage/storage_util.c index bc048e3dff..4fddbf3f9e 100644 --- a/src/storage/storage_util.c +++ b/src/storage/storage_util.c @@ -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);