summaryrefslogtreecommitdiff
path: root/fs/cifs/dir.c
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2006-03-09 22:21:45 +0000
committerSteve French <sfrench@us.ibm.com>2006-03-09 22:21:45 +0000
commit88274815f7477dc7550439413ab87c5ce4c5a623 (patch)
tree433e191b5b08742a57f2339008cdf24ca5b51221 /fs/cifs/dir.c
parentf6e77c94796edad172602234826a022d463d910e (diff)
downloadlinux-3.10-88274815f7477dc7550439413ab87c5ce4c5a623.tar.gz
linux-3.10-88274815f7477dc7550439413ab87c5ce4c5a623.tar.bz2
linux-3.10-88274815f7477dc7550439413ab87c5ce4c5a623.zip
[CIFS] Fix two remaining coverity scan tool warnings.
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/dir.c')
-rw-r--r--fs/cifs/dir.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/cifs/dir.c b/fs/cifs/dir.c
index 77e1fc01d74..ddd11fa1552 100644
--- a/fs/cifs/dir.c
+++ b/fs/cifs/dir.c
@@ -48,13 +48,14 @@ build_path_from_dentry(struct dentry *direntry)
struct dentry *temp;
int namelen = 0;
char *full_path;
- char dirsep = CIFS_DIR_SEP(CIFS_SB(direntry->d_sb));
+ char dirsep;
if(direntry == NULL)
return NULL; /* not much we can do if dentry is freed and
we need to reopen the file after it was closed implicitly
when the server crashed */
+ dirsep = CIFS_DIR_SEP(CIFS_SB(direntry->d_sb));
cifs_bp_rename_retry:
for (temp = direntry; !IS_ROOT(temp);) {
namelen += (1 + temp->d_name.len);