]> www.infradead.org Git - users/dwmw2/linux.git/commit
smb: client: remove unnecessary checks in open_cached_dir()
authorHenrique Carvalho <henrique.carvalho@suse.com>
Sat, 23 Nov 2024 01:14:36 +0000 (22:14 -0300)
committerSteve French <stfrench@microsoft.com>
Mon, 25 Nov 2024 19:19:30 +0000 (13:19 -0600)
commitf6e88838400d8872be090c0bc14b36d3a7a12975
tree2b5e177eda66e2314d2c15e0a28add68b0e7fc9d
parent228a1157fb9fec47eb135b51c0202b574e079ebf
smb: client: remove unnecessary checks in open_cached_dir()

Checks inside open_cached_dir() can be removed because if dir caching is
disabled then tcon->cfids is necessarily NULL. Therefore, all other checks
are redundant.

Signed-off-by: Henrique Carvalho <henrique.carvalho@suse.com>
Reviewed-by: Paulo Alcantara (Red Hat) <pc@manguebit.com>
Reviewed-by: Enzo Matsumiya <ematsumiya@suse.de>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/cached_dir.c