From 46b646ccb3453cbc16debf1c1469cdcbdf00e30d Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sun, 1 May 2022 12:34:27 +0100 Subject: [PATCH] [Minor] Remove useless comparision --- src/libutil/util.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/libutil/util.c b/src/libutil/util.c index ec86d22ea..547669536 100644 --- a/src/libutil/util.c +++ b/src/libutil/util.c @@ -1009,10 +1009,6 @@ rspamd_file_lock (gint fd, gboolean async) } if (flock (fd, flags) == -1) { - if (async && errno == EAGAIN) { - return FALSE; - } - return FALSE; } -- 2.39.5