[libvirt] [PATCH] storage: remove a redundant NULL assignment

Chen Hanxiao chenhanxiao at cn.fujitsu.com
Wed Nov 26 07:51:17 UTC 2014


We already did this in virSecretDefFree.

Signed-off-by: Chen Hanxiao <chenhanxiao at cn.fujitsu.com>
---
 src/storage/storage_backend.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/storage/storage_backend.c b/src/storage/storage_backend.c
index 98720f6..440f8b1 100644
--- a/src/storage/storage_backend.c
+++ b/src/storage/storage_backend.c
@@ -558,7 +558,6 @@ virStorageGenerateQcowEncryption(virConnectPtr conn,
         goto cleanup;
     xml = virSecretDefFormat(def);
     virSecretDefFree(def);
-    def = NULL;
     if (xml == NULL)
         goto cleanup;
 
-- 
1.9.3




More information about the libvir-list mailing list