mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
ceph: remove unneeded test in try_flush_caps
cap->session is always non-NULL, so we can just do a single test for equality w/o testing explicitly for a NULL pointer. Signed-off-by: Jeff Layton <jlayton@kernel.org> Reviewed-by: "Yan, Zheng" <zyan@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
This commit is contained in:
parent
9f3345d8ec
commit
27b0a39209
@ -2114,7 +2114,7 @@ retry_locked:
|
||||
struct ceph_cap *cap = ci->i_auth_cap;
|
||||
int delayed;
|
||||
|
||||
if (!session || session != cap->session) {
|
||||
if (session != cap->session) {
|
||||
spin_unlock(&ci->i_ceph_lock);
|
||||
if (session)
|
||||
mutex_unlock(&session->s_mutex);
|
||||
|
Loading…
Reference in New Issue
Block a user