From: Brad Hubbard Date: Tue, 18 Aug 2015 02:18:53 +0000 (+0800) Subject: ceph: remove redundant test of head->safe and silence static analysis warnings X-Git-Tag: firefly_0821_release~176^2~1080^2~10 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1550d34e5626a20a2e12c73bdc1e6e217a0ba897;p=firefly-linux-kernel-4.4.55.git ceph: remove redundant test of head->safe and silence static analysis warnings Signed-off-by: Brad Hubbard Signed-off-by: Yan, Zheng --- 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) mutex_unlock(&mdsc->mutex); goto out; } - if (req->r_got_safe && !head->safe) { + if (req->r_got_safe) { pr_warn("got unsafe after safe on %llu from mds%d\n", tid, mds); mutex_unlock(&mdsc->mutex);