cifs: make smb_msg local to read_from_socket
authorJeff Layton <jlayton@redhat.com>
Tue, 11 Oct 2011 10:41:32 +0000 (06:41 -0400)
committerSteve French <smfrench@gmail.com>
Thu, 13 Oct 2011 04:41:54 +0000 (23:41 -0500)
commite831e6cf3acb058d898411367a582deef80e32f8
treefc1a919e35b6d495e7010794547f7e7183362cb9
parente2218eab2050e879b253ca112aabd5f7167572af
cifs: make smb_msg local to read_from_socket

If msg_controllen is 0, then the socket layer should never touch these
fields. Thus, there's no need to continually reset them. Also, there's
no need to keep this field on the stack for the demultiplex thread, just
make it a local variable in read_from_socket.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/connect.c