From ac454fb1cc5f26a89b03ef6fd40d74c73ca46c33 Mon Sep 17 00:00:00 2001 From: James Booth Date: Wed, 24 Jun 2015 19:19:44 +0100 Subject: [PATCH] Removed NULL checks when not required --- src/pgp/gpg.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/pgp/gpg.c b/src/pgp/gpg.c index 32259f61..24e81336 100644 --- a/src/pgp/gpg.c +++ b/src/pgp/gpg.c @@ -84,10 +84,8 @@ p_gpg_close(void) fpskeyfile = NULL; } - if (fpsloc) { - free(fpsloc); - fpsloc = NULL; - } + free(fpsloc); + fpsloc = NULL; } void @@ -178,10 +176,8 @@ p_gpg_on_disconnect(void) fpskeyfile = NULL; } - if (fpsloc) { - free(fpsloc); - fpsloc = NULL; - } + free(fpsloc); + fpsloc = NULL; } gboolean