cifs: add local server pointer to cifs_setup_session
authorJeff Layton <jlayton@redhat.com>
Mon, 18 Aug 2008 19:41:05 +0000 (15:41 -0400)
committerSteve French <sfrench@us.ibm.com>
Tue, 19 Aug 2008 17:11:35 +0000 (17:11 +0000)
commitcb7691b648bddbfaf6dd8d8068273dbb18d2484c
tree74c896711abf398255cec10c7b6eb67070bc5ca0
parentaab3a8c7a3a6a001dd439ed00d4db17a1059803e
cifs: add local server pointer to cifs_setup_session

cifs_setup_session references pSesInfo->server several times. That
pointer shouldn't change during the life of the function so grab it
once and store it in a local var. This makes the code look a little
cleaner too.

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