From 79dee97cf713be55f7d974c93c495e4e8dd93a9a Mon Sep 17 00:00:00 2001 From: Gleb Korobeynikov Date: Mon, 22 Jul 2024 13:46:01 +0300 Subject: [PATCH] cifs: cifs_inval_name_dfs_link_error: remove unnecessary condition for checking tcon->origin_fullpath Signed-off-by: Gleb Korobeynikov --- fs/smb/client/misc.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/fs/smb/client/misc.c b/fs/smb/client/misc.c index 70422738cc26..b30dff8ea239 100644 --- a/fs/smb/client/misc.c +++ b/fs/smb/client/misc.c @@ -1286,13 +1286,6 @@ int cifs_inval_name_dfs_link_error(const unsigned int xid, !is_tcon_dfs(tcon)) return 0; - spin_lock(&tcon->tc_lock); - if (!tcon->origin_fullpath) { - spin_unlock(&tcon->tc_lock); - return 0; - } - spin_unlock(&tcon->tc_lock); - /* * Slow path - tcon is DFS and @full_path has prefix path, so attempt * to get a referral to figure out whether it is an DFS link. -- 2.30.2