]> git.karo-electronics.de Git - karo-tx-linux.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>
Wed, 12 Oct 2011 21:03:36 +0000 (16:03 -0500)
commitc098719e23c637af12e4c5eb23e8fc8324839ff2
treefc1a919e35b6d495e7010794547f7e7183362cb9
parent75680bdb7807e03ea552c395f2df2ca87bb723cb
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>
fs/cifs/connect.c