]> xenbits.xensource.com Git - libvirt.git/commitdiff
libxl: libxlLoggerFileFree: remove redundant NULL assignment
authorJán Tomko <jtomko@redhat.com>
Fri, 3 Dec 2021 15:23:49 +0000 (16:23 +0100)
committerJán Tomko <jtomko@redhat.com>
Fri, 3 Dec 2021 15:23:49 +0000 (16:23 +0100)
The 'file' pointer is already zeroed in virFileFclose
and never read again.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
src/libxl/libxl_logger.c

index 44ee5a95da073812d19812695b6122c16399ad97..4708553f294bb57aa3c8adf284e5c4048b78b1ad 100644 (file)
@@ -53,7 +53,6 @@ libxlLoggerFileFree(void *payload)
 {
     FILE *file = payload;
     VIR_FORCE_FCLOSE(file);
-    file = NULL;
 }
 
 G_GNUC_PRINTF(5, 0) static void