]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
smb: client: remove pointless cfid->has_lease check
authorHenrique Carvalho <henrique.carvalho@suse.com>
Fri, 19 Sep 2025 01:44:34 +0000 (22:44 -0300)
committerSteve French <stfrench@microsoft.com>
Thu, 2 Oct 2025 03:42:04 +0000 (22:42 -0500)
commit2f6a4af028dbb392d55b261cafcb922dd7b7ffea
tree6b800acb5118f246a76bb40fefc4d0ebf0b40537
parent6c7fd184234336a3b998fdf8f8db51e970dd6071
smb: client: remove pointless cfid->has_lease check

open_cached_dir() will only return a valid cfid, which has both
has_lease = true and time != 0.

Remove the pointless check of cfid->has_lease right after
open_cached_dir() returns no error.

Signed-off-by: Henrique Carvalho <henrique.carvalho@suse.com>
Reviewed-by: Enzo Matsumiya <ematsumiya@suse.de>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/smb2ops.c