]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs: Remove two "== true"
authorVolker Lendecke <vl@samba.org>
Fri, 26 May 2023 10:39:15 +0000 (12:39 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 13 Jun 2023 23:33:39 +0000 (23:33 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_shadow_copy2.c

index 2a8f1cae022f124f84df05adab49cb37d08b0d59..2bbd3a5d35fbd5d40ed01d4bf10cf8d3063ae5a7 100644 (file)
@@ -3304,7 +3304,7 @@ static int shadow_copy2_connect(struct vfs_handle_struct *handle,
        if (config->snapdir[0] == '/') {
                config->snapdir_absolute = true;
 
-               if (config->snapdirseverywhere == true) {
+               if (config->snapdirseverywhere) {
                        DBG_WARNING("Warning: An absolute snapdir is "
                                    "incompatible with 'snapdirseverywhere', "
                                    "setting 'snapdirseverywhere' to "
@@ -3312,7 +3312,7 @@ static int shadow_copy2_connect(struct vfs_handle_struct *handle,
                        config->snapdirseverywhere = false;
                }
 
-               if (config->crossmountpoints == true) {
+               if (config->crossmountpoints) {
                        DBG_WARNING("Warning: 'crossmountpoints' is not "
                                    "supported with an absolute snapdir. "
                                    "Disabling it.\n");