git » libjio » commit 9f08a4a

libjio: Make a free() unconditional (minor style change)

author Alberto Bertogli
2009-07-03 07:46:59 UTC
committer Alberto Bertogli
2009-07-03 07:46:59 UTC
parent 21e732893f980527eb029f9f1ecef327fd4a75b8

libjio: Make a free() unconditional (minor style change)

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>

libjio/journal.c +1 -3

diff --git a/libjio/journal.c b/libjio/journal.c
index cc61976..0666504 100644
--- a/libjio/journal.c
+++ b/libjio/journal.c
@@ -328,9 +328,7 @@ int journal_free(struct journal_op *jop)
 exit:
 	close(jop->fd);
 
-	if (jop->name)
-		free(jop->name);
-
+	free(jop->name);
 	free(jop);
 
 	return rv;