]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs_ceph_new: Remove code duplication
authorAnoop C S <anoopcs@samba.org>
Tue, 17 Mar 2026 07:36:43 +0000 (13:06 +0530)
committerAnoop C S <anoopcs@samba.org>
Fri, 20 Mar 2026 05:32:32 +0000 (05:32 +0000)
Signed-off-by: Anoop C S <anoopcs@samba.org>
Reviewed-by: John Mulligan <jmulligan@redhat.com>
source3/modules/vfs_ceph_new.c

index 09095098af6eef7f5aa77e3af9a6497fda594877..9e892a2ee3a7bcc81b85637b9c909a4dd6895f7c 100644 (file)
@@ -700,18 +700,17 @@ static bool vfs_ceph_load_config(struct vfs_handle_struct *handle,
                TALLOC_FREE(config_tmp);
                return false;
        }
-#if HAVE_CEPH_FSCRYPT
+
        if (config_tmp->fscrypt == VFS_CEPHFS_FSCRYPT_KEYBRIDGE) {
+#if HAVE_CEPH_FSCRYPT
                if (parse_keybridge_config(snum, module_name, config_tmp)) {
                        fetch_keybridge_config(config_tmp);
                }
-       }
 #else
-       if (config_tmp->fscrypt == VFS_CEPHFS_FSCRYPT_KEYBRIDGE) {
                DBG_ERR("[CEPH] fscrypt support configured but"
                        " not enabled during build, ignoring\n");
-       }
 #endif
+       }
 
        ok = vfs_cephfs_load_lib(config_tmp);
        if (!ok) {