]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-index: Minor code cleanup.
authorTimo Sirainen <tss@iki.fi>
Mon, 5 Apr 2010 05:13:36 +0000 (08:13 +0300)
committerTimo Sirainen <tss@iki.fi>
Mon, 5 Apr 2010 05:13:36 +0000 (08:13 +0300)
--HG--
branch : HEAD

src/lib-index/mail-cache-transaction.c

index 4ede709ab187c83628b3f627e792580949a0de4e..ff1befba45f9212861a968e9b1cb1d7c86891949 100644 (file)
@@ -262,8 +262,9 @@ static int mail_cache_transaction_lock(struct mail_cache_transaction_ctx *ctx)
                        return 0;
                }
        }
+       i_assert(!MAIL_CACHE_IS_UNUSABLE(cache));
 
-       if (!MAIL_CACHE_IS_UNUSABLE(cache) && ctx->cache_file_seq == 0) {
+       if (ctx->cache_file_seq == 0) {
                i_assert(ctx->cache_data == NULL ||
                         ctx->cache_data->used == 0);
                ctx->cache_file_seq = cache->hdr->file_seq;