From: Vsevolod Stakhov Date: Sun, 1 May 2022 11:34:27 +0000 (+0100) Subject: [Minor] Remove useless comparision X-Git-Tag: 3.3~292 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=46b646ccb3453cbc16debf1c1469cdcbdf00e30d;p=thirdparty%2Frspamd.git [Minor] Remove useless comparision --- diff --git a/src/libutil/util.c b/src/libutil/util.c index ec86d22eaf..547669536f 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; }