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-Url: https://git.stricted.de/?a=commitdiff_plain;h=1550d34e5626a20a2e12c73bdc1e6e217a0ba897;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.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);