]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osdc: cleanup code. 21322/head
authorJianpeng Ma <jianpeng.ma@intel.com>
Mon, 9 Apr 2018 00:44:29 +0000 (08:44 +0800)
committerJianpeng Ma <jianpeng.ma@intel.com>
Tue, 10 Apr 2018 16:55:18 +0000 (00:55 +0800)
Remvoe useless conditon.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
src/osdc/Objecter.cc

index f766a4301415bf9ebbd1b062b583831e1b18a83f..fc61594db0225ff70f49b4334ed2323a84cc7794 100644 (file)
@@ -4780,8 +4780,7 @@ void Objecter::handle_command_reply(MCommandReply *m)
                   << " not found" << dendl;
     m->put();
     sl.unlock();
-    if (s)
-      s->put();
+    s->put();
     return;
   }
 
@@ -4794,8 +4793,7 @@ void Objecter::handle_command_reply(MCommandReply *m)
                   << dendl;
     m->put();
     sl.unlock();
-    if (s)
-      s->put();
+    s->put();
     return;
   }
   if (c->poutbl) {
@@ -4807,8 +4805,7 @@ void Objecter::handle_command_reply(MCommandReply *m)
 
   _finish_command(c, m->r, m->rs);
   m->put();
-  if (s)
-    s->put();
+  s->put();
 }
 
 void Objecter::submit_command(CommandOp *c, ceph_tid_t *ptid)