]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Removed unnecessary NULL checks.
authorTimo Sirainen <tss@iki.fi>
Thu, 28 Jul 2011 21:04:20 +0000 (00:04 +0300)
committerTimo Sirainen <tss@iki.fi>
Thu, 28 Jul 2011 21:04:20 +0000 (00:04 +0300)
src/lib-storage/index/index-storage.c
src/lib-storage/mail-namespace.c

index 70a144f5105bdfdd25376cdac115dadd32f8e1bd..4b8376cf636bd5c3f411408ffe0a30004643c91f 100644 (file)
@@ -204,8 +204,7 @@ int index_storage_mailbox_open(struct mailbox *box, bool move_to_memory)
        box->opened = TRUE;
 
        index_thread_mailbox_opened(box);
-       if (hook_mailbox_opened != NULL)
-               hook_mailbox_opened(box);
+       hook_mailbox_opened(box);
 
        if ((box->flags & MAILBOX_FLAG_OPEN_DELETED) == 0) {
                if (mail_index_is_deleted(box->index)) {
index 745b7ff2f164469a98df1f1e758e44dd4a702493..95381a296878659d2c1f5d99d7aece065b7f85bc 100644 (file)
@@ -400,11 +400,9 @@ int mail_namespaces_init_location(struct mail_user *user, const char *location,
        }
        user->namespaces = ns;
 
-       if (hook_mail_namespaces_created != NULL) {
-               T_BEGIN {
-                       hook_mail_namespaces_created(ns);
-               } T_END;
-       }
+       T_BEGIN {
+               hook_mail_namespaces_created(ns);
+       } T_END;
        return 0;
 }