提交 9cfd5073 编写于 作者: J John Ferlan

storage_util: Some code cleanup

Perform some code cleanup in areas that are about to be altered.
Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
上级 33e75120
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册