[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



We already did this in virSecretDefFree.

Signed-off-by: Chen Hanxiao <chenhanxiao 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]