cifs: replace some hardcoded values with preprocessor constants
commit1397f2ee4be65542fdc3460c7e8b6317779ea680
authorJeff Layton <jlayton@redhat.com>
Fri, 7 Jan 2011 16:30:28 +0000 (7 11:30 -0500)
committerSteve French <sfrench@us.ibm.com>
Sun, 9 Jan 2011 23:39:12 +0000 (9 23:39 +0000)
tree77e0946defb1ea1b52b166ab46d21c07d04dac22
parenta0f8b4fb4cab4bc32caaf34fc0a0c9d5dd369186
cifs: replace some hardcoded values with preprocessor constants

A number of places that deal with RFC1001/1002 negotiations have bare
"15" or "16" values. Replace them with RFC_1001_NAME_LEN and
RFC_1001_NAME_LEN_WITH_NULL.

The patch also cleans up some checkpatch warnings for code surrounding
the changes. This should apply cleanly on top of the patch to remove
Local_System_Name.

Reported-and-Reviwed-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/connect.c