ceph: cleanup use of ceph_msg_get
authorJianpeng Ma <jianpeng.ma@intel.com>
Tue, 18 Aug 2015 02:30:38 +0000 (10:30 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 8 Sep 2015 20:14:29 +0000 (23:14 +0300)
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
Signed-off-by: Yan, Zheng <zyan@redhat.com>
fs/ceph/mds_client.c

index d4eaa849a820e97ea54911ce9f20efdf594bf38a..51cb02da75d98979b18e05d7bdad4dee89e258d4 100644 (file)
@@ -2524,8 +2524,7 @@ out_err:
                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 {