summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/registry/regfio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/registry/regfio.c b/source3/registry/regfio.c
index 9eb2c58298..b6e822955c 100644
--- a/source3/registry/regfio.c
+++ b/source3/registry/regfio.c
@@ -1277,7 +1277,7 @@ static void regfio_mem_free( REGF_FILE *file )
/* nothing tdo do if there is no open file */
- if ( !file || (file->fd == -1) )
+ if (file->fd == -1)
return 0;
fd = file->fd;