]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
global: start relying on file_lock_free(NULL) being a no-op
authorJosef 'Jeff' Sipek <jeff.sipek@dovecot.fi>
Mon, 29 Jan 2018 13:43:05 +0000 (08:43 -0500)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 31 Jan 2018 11:58:35 +0000 (13:58 +0200)
commit5109f00ce0cf7c89be9ab20a488a93a59212ff2e
tree80c1af7e8a03cd2f5f3ffceb30b9351739527162
parentceb8c97c6c9fe0ee7eb544645c6bdb74dfcb519d
global: start relying on file_lock_free(NULL) being a no-op

Cleanup performed with the following semantic patch:

@@
expression E;
@@

- if (E != NULL) {
-       file_lock_free(&E);
- }
+ file_lock_free(&E);
src/lib-index/mail-cache.c
src/lib-storage/index/index-mailbox-size.c
src/lib-storage/mail-autoexpunge.c
src/lib/file-lock.c
src/plugins/fts-squat/squat-trie.c
src/plugins/fts-squat/squat-uidlist.c