]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitca7a7cc35b3d9f9ae89f4a5ba080f6ca5a2b7149
treefc1a919e35b6d495e7010794547f7e7183362cb9
parentd367309ad617015238b29c69f3681e4422125663
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