[CIFS] Redundant null check after dereference
authorSteve French <sfrench@us.ibm.com>
Mon, 25 Jul 2011 22:04:32 +0000 (22:04 +0000)
committerSteve French <sfrench@us.ibm.com>
Mon, 25 Jul 2011 22:04:32 +0000 (22:04 +0000)
Reviewed-by: Shirish Pargaonkar <shirishp@us.ibm.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/dir.c

index fa8c21d913bc5b212191d2c444cb5ce74e1d4058..8e9d37d44e9da10f457ccb78c7ab63335fdc6e64 100644 (file)
@@ -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);