cifs: Simplify SMB2_open_init()
authorVolker Lendecke <vl@samba.org>
Thu, 30 Mar 2023 12:04:47 +0000 (12:04 +0000)
committerSteve French <stfrench@microsoft.com>
Mon, 24 Apr 2023 01:31:44 +0000 (20:31 -0500)
commitd2ec43b51521b4c83313df60d8b03a6640374c20
treeb6f0bf9aa14c25e173f4baaaf85601f7bade18f7
parent2a8d1387ed985341364b471ad63e323431ef6c4a
cifs: Simplify SMB2_open_init()

Reduce code duplication by calculating req->CreateContextsLength in
one place.

This is the last reference to "req" in the add_*_context functions,
remove that parameter.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Enzo Matsumiya <ematsumiya@suse.de>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smb2pdu.c