mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-27 13:43:53 +00:00
cifs: remove bogus reset of smb_buf_length in smb_send routines
There's a comment here about how we don't want to modify this length, but nothing in this function actually does. Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve French <smfrench@gmail.com>
This commit is contained in:
parent
c5fd363d77
commit
d971e0656b
@ -126,7 +126,6 @@ smb_sendv(struct TCP_Server_Info *server, struct kvec *iov, int n_vec)
|
|||||||
int rc = 0;
|
int rc = 0;
|
||||||
int i = 0;
|
int i = 0;
|
||||||
struct msghdr smb_msg;
|
struct msghdr smb_msg;
|
||||||
__be32 *buf_len = (__be32 *)(iov[0].iov_base);
|
|
||||||
unsigned int len = iov[0].iov_len;
|
unsigned int len = iov[0].iov_len;
|
||||||
unsigned int total_len;
|
unsigned int total_len;
|
||||||
int first_vec = 0;
|
int first_vec = 0;
|
||||||
@ -235,9 +234,6 @@ smb_sendv(struct TCP_Server_Info *server, struct kvec *iov, int n_vec)
|
|||||||
else
|
else
|
||||||
rc = 0;
|
rc = 0;
|
||||||
|
|
||||||
/* Don't want to modify the buffer as a side effect of this call. */
|
|
||||||
*buf_len = cpu_to_be32(smb_buf_length);
|
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user