summaryrefslogtreecommitdiffstats
path: root/fs/cifs/transport.c
diff options
context:
space:
mode:
authorRonnie Sahlberg2018-06-12 00:00:59 +0200
committerSteve French2018-06-15 09:38:08 +0200
commit40eff45b5dc7df73fc8926c9bd81bde2d4c8ccca (patch)
tree4711b3dc874dd1ae0a9e4ce40e1c5c655c5889dd /fs/cifs/transport.c
parentcifs: push rfc1002 generation down the stack (diff)
downloadkernel-qcow2-linux-40eff45b5dc7df73fc8926c9bd81bde2d4c8ccca.tar.gz
kernel-qcow2-linux-40eff45b5dc7df73fc8926c9bd81bde2d4c8ccca.tar.xz
kernel-qcow2-linux-40eff45b5dc7df73fc8926c9bd81bde2d4c8ccca.zip
cifs: remove smb2_send_recv()
Now that we have the plumbing to pass request without an rfc1002 header all the way down to the point we write to the socket we no longer need the smb2_send_recv() function. Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com> Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/transport.c')
-rw-r--r--fs/cifs/transport.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/fs/cifs/transport.c b/fs/cifs/transport.c
index 63f25f919b24..8b922ffc2345 100644
--- a/fs/cifs/transport.c
+++ b/fs/cifs/transport.c
@@ -880,23 +880,6 @@ SendReceive2(const unsigned int xid, struct cifs_ses *ses,
return rc;
}
-/* Like SendReceive2 but iov[0] does not contain an rfc1002 header */
-int
-smb2_send_recv(const unsigned int xid, struct cifs_ses *ses,
- struct kvec *iov, int n_vec, int *resp_buf_type /* ret */,
- const int flags, struct kvec *resp_iov)
-{
- struct smb_rqst rqst;
- int rc;
-
- memset(&rqst, 0, sizeof(struct smb_rqst));
- rqst.rq_iov = iov;
- rqst.rq_nvec = n_vec;
-
- rc = cifs_send_recv(xid, ses, &rqst, resp_buf_type, flags, resp_iov);
- return rc;
-}
-
int
SendReceive(const unsigned int xid, struct cifs_ses *ses,
struct smb_hdr *in_buf, struct smb_hdr *out_buf,