From: Jeff Layton Date: Tue, 11 Oct 2011 10:41:32 +0000 (-0400) Subject: cifs: clean up checkSMB X-Git-Tag: v3.2-rc1~133^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=376b43f41c8b9315f7efdf085d214b6024337381;p=pandora-kernel.git cifs: clean up checkSMB The variable names in this function are so ambiguous that it's very difficult to know what it's doing. Rename them to make it a bit more clear. Also, remove a redundant length check. cifsd checks to make sure that the rfclen isn't larger than the maximum frame size when it does the receive. Finally, change checkSMB to return a real error code (-EIO) when it finds an error. That will help simplify some coming changes in the callers. Signed-off-by: Jeff Layton Signed-off-by: Steve French --- Reading git-diff-tree failed