]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Simplify smb_file_position_information()
authorVolker Lendecke <vl@samba.org>
Sat, 23 Nov 2024 15:35:10 +0000 (16:35 +0100)
committerMartin Schwenke <martins@samba.org>
Mon, 2 Dec 2024 04:53:33 +0000 (04:53 +0000)
We've asserted fsp!=NULL in the caller

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
source3/smbd/smb2_trans2.c

index 7372a8c17277575ccb572bf5c4703be034f871a2..125a8b4831ffe1a5d77237a36f4d39706ce5a6be 100644 (file)
@@ -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 "