if (mail_set->mail_path[0] == '\0') {
/* no root directory given. is this allowed? */
- if (storage_class == NULL &&
- (flags & MAIL_STORAGE_FLAG_NO_AUTODETECTION) == 0) {
+ if ((flags & MAIL_STORAGE_FLAG_NO_AUTODETECTION) == 0) {
/* autodetection should take care of this */
- } else if (storage_class != NULL &&
- (storage_class->class_flags & MAIL_STORAGE_CLASS_FLAG_NO_ROOT) != 0) {
+ } else if ((storage_class->class_flags & MAIL_STORAGE_CLASS_FLAG_NO_ROOT) != 0) {
/* root not required for this storage */
} else {
*error_r = "Root mail directory not given";