From: Marco Bettini Date: Mon, 25 Aug 2025 15:09:47 +0000 (+0000) Subject: lib-storage: mdbox_map_append_assign_map_uids() - Drop redundant code. X-Git-Tag: 2.4.2~536 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=850e97aa7602e46fe27806d0423673fc79de3840;p=thirdparty%2Fdovecot%2Fcore.git lib-storage: mdbox_map_append_assign_map_uids() - Drop redundant code. Found by Coverity, 41955, 41956 Operands don't affect result The comparison with UOFF_T_MAX is always true. --- diff --git a/src/lib-storage/index/dbox-multi/mdbox-map.c b/src/lib-storage/index/dbox-multi/mdbox-map.c index a2f3c862ab..a5d7e8e158 100644 --- a/src/lib-storage/index/dbox-multi/mdbox-map.c +++ b/src/lib-storage/index/dbox-multi/mdbox-map.c @@ -1310,9 +1310,6 @@ int mdbox_map_append_assign_map_uids(struct mdbox_map_append_context *ctx, struct mdbox_file *mfile = (struct mdbox_file *)appends[i].file_append->file; - i_assert(appends[i].offset <= UOFF_T_MAX); - i_assert(appends[i].size <= UOFF_T_MAX); - rec.file_id = mfile->file_id; rec.offset = appends[i].offset; /* A mail that exceeds 4GB is the final mail in the record and