]> git.karo-electronics.de Git - mv-sheeva.git/commit
cifs: clean up check_rfc1002_header
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 23:44:40 +0000 (18:44 -0500)
commitfe11e4ccb8479d92cd2a101d380d332544b84aaa
tree626e286d6451a26ea07c8fdb89cb23eb1dca0111
parent03776f4516bc299b3145595bdd704d40d69adc02
cifs: clean up check_rfc1002_header

Rename it for better clarity as to what it does and have the caller pass
in just the single type byte. Turn the if statement into a switch and
optimize it by placing the most common message type at the top. Move the
header length check back into cifs_demultiplex_thread in preparation
for adding a new receive phase and normalize the cFYI messages.

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