From 3fd8498fcb4d8666d89cc76d87a13e75e4e1a9e8 Mon Sep 17 00:00:00 2001 From: TheJackiMonster Date: Thu, 23 Nov 2023 21:47:54 +0100 Subject: Remove redundant checking Signed-off-by: TheJackiMonster --- src/gnunet_chat_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gnunet_chat_util.c b/src/gnunet_chat_util.c index 5ddc824..9246308 100644 --- a/src/gnunet_chat_util.c +++ b/src/gnunet_chat_util.c @@ -166,7 +166,7 @@ util_encrypt_file (const char *filename, break; } - if ((mapping) && (GNUNET_OK != GNUNET_DISK_file_unmap(mapping))) + if (GNUNET_OK != GNUNET_DISK_file_unmap(mapping)) result = -1; if (GNUNET_OK != GNUNET_DISK_file_sync(file)) -- cgit v1.2.3