From 824a70fe89821d8a09751077e05a562ef5e40afc Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 23 Nov 2024 16:35:10 +0100 Subject: [PATCH] smbd: Simplify smb_file_position_information() We've asserted fsp!=NULL in the caller Signed-off-by: Volker Lendecke Reviewed-by: Martin Schwenke --- source3/smbd/smb2_trans2.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/source3/smbd/smb2_trans2.c b/source3/smbd/smb2_trans2.c index 7372a8c1727..125a8b4831f 100644 --- a/source3/smbd/smb2_trans2.c +++ b/source3/smbd/smb2_trans2.c @@ -4246,11 +4246,6 @@ static NTSTATUS smb_file_position_information(connection_struct *conn, return NT_STATUS_INVALID_PARAMETER; } - if (fsp == NULL) { - /* Ignore on pathname based set. */ - return NT_STATUS_OK; - } - position_information = PULL_LE_U64(pdata, 0); DEBUG(10,("smb_file_position_information: Set file position " -- 2.47.3