[libvirt PATCH] libxl: libxlLoggerFileFree: remove redundant NULL assignment

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

 



The 'file' pointer is already zeroed in virFileFclose
and never read again.

Signed-off-by: Ján Tomko <jtomko@xxxxxxxxxx>
---
Pushed as trivial.

 src/libxl/libxl_logger.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/libxl/libxl_logger.c b/src/libxl/libxl_logger.c
index 44ee5a95da..4708553f29 100644
--- a/src/libxl/libxl_logger.c
+++ b/src/libxl/libxl_logger.c
@@ -53,7 +53,6 @@ libxlLoggerFileFree(void *payload)
 {
     FILE *file = payload;
     VIR_FORCE_FCLOSE(file);
-    file = NULL;
 }
 
 G_GNUC_PRINTF(5, 0) static void
-- 
2.31.1




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux