Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e010a5ef authored by Steve French's avatar Steve French
Browse files

[CIFS] Redundant null check after dereference

parent eaf35b1e
Loading
Loading
Loading
Loading
+0 −5
Original line number Original line Diff line number Diff line
@@ -57,11 +57,6 @@ build_path_from_dentry(struct dentry *direntry)
	struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb);
	struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb);
	unsigned seq;
	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);
	dirsep = CIFS_DIR_SEP(cifs_sb);
	if (tcon->Flags & SMB_SHARE_IS_IN_DFS)
	if (tcon->Flags & SMB_SHARE_IS_IN_DFS)
		dfsplen = strnlen(tcon->treeName, MAX_TREE_SIZE + 1);
		dfsplen = strnlen(tcon->treeName, MAX_TREE_SIZE + 1);