]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Remove useless comparision
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sun, 1 May 2022 11:34:27 +0000 (12:34 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sun, 1 May 2022 11:34:27 +0000 (12:34 +0100)
src/libutil/util.c

index ec86d22eaf170717c0b39d05afdfc1ae95e98f9d..547669536fe81d6583b083810495671509d0aaa8 100644 (file)
@@ -1009,10 +1009,6 @@ rspamd_file_lock (gint fd, gboolean async)
        }
 
        if (flock (fd, flags) == -1) {
-               if (async && errno == EAGAIN) {
-                       return FALSE;
-               }
-
                return FALSE;
        }