diff options
author | Brad Hubbard <bhubbard@redhat.com> | 2015-08-17 22:18:53 -0400 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2015-09-08 16:14:29 -0400 |
commit | 1550d34e5626a20a2e12c73bdc1e6e217a0ba897 (patch) | |
tree | c7b6d3815d32a4120a7bf4e81f92c53a0365f7da /fs/ceph/mds_client.c | |
parent | 23078637e05460428f803be7d0f46908df8a970a (diff) |
ceph: remove redundant test of head->safe and silence static analysis warnings
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
Signed-off-by: Yan, Zheng <zyan@redhat.com>
Diffstat (limited to 'fs/ceph/mds_client.c')
-rw-r--r-- | fs/ceph/mds_client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c index ddc471c32230..d4eaa849a820 100644 --- a/fs/ceph/mds_client.c +++ b/fs/ceph/mds_client.c | |||
@@ -2415,7 +2415,7 @@ static void handle_reply(struct ceph_mds_session *session, struct ceph_msg *msg) | |||
2415 | mutex_unlock(&mdsc->mutex); | 2415 | mutex_unlock(&mdsc->mutex); |
2416 | goto out; | 2416 | goto out; |
2417 | } | 2417 | } |
2418 | if (req->r_got_safe && !head->safe) { | 2418 | if (req->r_got_safe) { |
2419 | pr_warn("got unsafe after safe on %llu from mds%d\n", | 2419 | pr_warn("got unsafe after safe on %llu from mds%d\n", |
2420 | tid, mds); | 2420 | tid, mds); |
2421 | mutex_unlock(&mdsc->mutex); | 2421 | mutex_unlock(&mdsc->mutex); |