Mercurial > dovecot > core-2.2
diff src/lib-storage/list/mailbox-list-index-notify.c @ 19229:5af9b91c38c0
lib-storage: Removed unnecessary code - nnode is never NULL at this point.
Found by Coverity.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 27 Sep 2015 21:34:48 +0300 |
parents | 390d55d627a8 |
children | 0f22db71df7a |
line wrap: on
line diff
--- a/src/lib-storage/list/mailbox-list-index-notify.c Sun Sep 27 21:33:30 2015 +0300 +++ b/src/lib-storage/list/mailbox-list-index-notify.c Sun Sep 27 21:34:48 2015 +0300 @@ -722,13 +722,11 @@ } /* update internal state */ - if (nnode != NULL) { - nnode->uidvalidity = status.uidvalidity; - nnode->uidnext = status.uidnext; - nnode->messages = status.messages; - nnode->unseen = status.unseen; - nnode->highest_modseq = status.highest_modseq; - } + nnode->uidvalidity = status.uidvalidity; + nnode->uidnext = status.uidnext; + nnode->messages = status.messages; + nnode->unseen = status.unseen; + nnode->highest_modseq = status.highest_modseq; return TRUE; }