]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs: Slightly simplify catia_translate_name()
authorVolker Lendecke <vl@samba.org>
Tue, 28 Jan 2025 11:12:33 +0000 (12:12 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 5 Feb 2025 00:07:30 +0000 (00:07 +0000)
We have returned if !NT_STATUS_OK(status) a few lines above.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_catia.c

index 0b6b0aa01f378c6e8a6f809cf4822f5ca300f0aa..a4f24c9411ab692c427b5edd1a767b9785e2d2ce 100644 (file)
@@ -213,7 +213,7 @@ static NTSTATUS catia_translate_name(struct vfs_handle_struct *handle,
        if (NT_STATUS_EQUAL(ret, NT_STATUS_NONE_MAPPED)) {
                *pmapped_name = talloc_move(mem_ctx, &mapped_name);
                /* we need to return the former translation result here */
-               ret = status;
+               ret = NT_STATUS_OK;
        } else {
                TALLOC_FREE(mapped_name);
        }