diff options
author | Jeff Layton <jlayton@redhat.com> | 2012-07-23 13:28:37 -0400 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2012-07-23 17:36:31 -0400 |
commit | d971e0656bf6e57925292dae755d36fb3c5b093d (patch) | |
tree | 080fa13c26c890e37c3a392d3fde877f52f0a538 /fs | |
parent | c5fd363d771393a7b42bbbe051f30f97d4867a40 (diff) |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/cifs/transport.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/cifs/transport.c b/fs/cifs/transport.c index f25d4ea14be4..fdda15a6a803 100644 --- a/fs/cifs/transport.c +++ b/fs/cifs/transport.c | |||
@@ -126,7 +126,6 @@ smb_sendv(struct TCP_Server_Info *server, struct kvec *iov, int n_vec) | |||
126 | int rc = 0; | 126 | int rc = 0; |
127 | int i = 0; | 127 | int i = 0; |
128 | struct msghdr smb_msg; | 128 | struct msghdr smb_msg; |
129 | __be32 *buf_len = (__be32 *)(iov[0].iov_base); | ||
130 | unsigned int len = iov[0].iov_len; | 129 | unsigned int len = iov[0].iov_len; |
131 | unsigned int total_len; | 130 | unsigned int total_len; |
132 | int first_vec = 0; | 131 | int first_vec = 0; |
@@ -235,9 +234,6 @@ smb_sendv(struct TCP_Server_Info *server, struct kvec *iov, int n_vec) | |||
235 | else | 234 | else |
236 | rc = 0; | 235 | rc = 0; |
237 | 236 | ||
238 | /* Don't want to modify the buffer as a side effect of this call. */ | ||
239 | *buf_len = cpu_to_be32(smb_buf_length); | ||
240 | |||
241 | return rc; | 237 | return rc; |
242 | } | 238 | } |
243 | 239 | ||