diff options
author | Steve French <sfrench@us.ibm.com> | 2011-07-25 22:04:32 (GMT) |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2011-07-25 22:04:32 (GMT) |
commit | e010a5ef95b8b6a12b74b548578f7dcf93564347 (patch) | |
tree | 845def645b231e6d57d0f4df6126401f6f13574b /fs | |
parent | eaf35b1ea8c12edc5ba8299a8ecfe1efab85101b (diff) | |
download | linux-e010a5ef95b8b6a12b74b548578f7dcf93564347.tar.xz |
[CIFS] Redundant null check after dereference
Reviewed-by: Shirish Pargaonkar <shirishp@us.ibm.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/cifs/dir.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/cifs/dir.c b/fs/cifs/dir.c index fa8c21d..8e9d37d 100644 --- a/fs/cifs/dir.c +++ b/fs/cifs/dir.c @@ -57,11 +57,6 @@ build_path_from_dentry(struct dentry *direntry) struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); unsigned seq; - 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); if (tcon->Flags & SMB_SHARE_IS_IN_DFS) dfsplen = strnlen(tcon->treeName, MAX_TREE_SIZE + 1); |