]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libsmb: Remove an unnecessary cast
authorVolker Lendecke <vl@samba.org>
Tue, 13 May 2025 09:13:08 +0000 (11:13 +0200)
committerVolker Lendecke <vl@samba.org>
Tue, 2 Sep 2025 08:08:29 +0000 (08:08 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
source3/libsmb/cli_smb2_fnum.c

index cbbd1208e04dfc11b3151ecbf5deb9d65857b5d6..17c02ed7dd398166ebd9fee9bc10f58bab756a9d 100644 (file)
@@ -98,7 +98,7 @@ static NTSTATUS map_smb2_handle_to_fnum(struct cli_state *cli,
                return NT_STATUS_NO_MEMORY;
        }
 
-       *pfnum = (uint16_t)ret;
+       *pfnum = ret;
        return NT_STATUS_OK;
 }