ceph: cleanup use of ceph_msg_get

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
Signed-off-by: Yan, Zheng <zyan@redhat.com>
This commit is contained in:
Jianpeng Ma 2015-08-18 10:30:38 +08:00 committed by Ilya Dryomov
parent e36d571d70
commit 5fdb1389e1

View file

@ -2524,8 +2524,7 @@ static void handle_reply(struct ceph_mds_session *session, struct ceph_msg *msg)
if (err) {
req->r_err = err;
} else {
req->r_reply = msg;
ceph_msg_get(msg);
req->r_reply = ceph_msg_get(msg);
req->r_got_result = true;
}
} else {