From: Volker Lendecke Date: Tue, 28 Jan 2025 11:12:33 +0000 (+0100) Subject: vfs: Slightly simplify catia_translate_name() X-Git-Tag: tdb-1.4.13~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12ea19635933e5a0321d9e7c5bbd012cf350a3a0;p=thirdparty%2Fsamba.git vfs: Slightly simplify catia_translate_name() We have returned if !NT_STATUS_OK(status) a few lines above. Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/modules/vfs_catia.c b/source3/modules/vfs_catia.c index 0b6b0aa01f3..a4f24c9411a 100644 --- a/source3/modules/vfs_catia.c +++ b/source3/modules/vfs_catia.c @@ -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); }