]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osdc: cleanup code.
authorJianpeng Ma <jianpeng.ma@intel.com>
Mon, 9 Apr 2018 00:44:29 +0000 (08:44 +0800)
committerSamuel Just <sjust@redhat.com>
Wed, 21 Aug 2019 21:02:42 +0000 (14:02 -0700)
Remvoe useless conditon.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
(cherry picked from commit 964068ca8f60a9409abbfdd5836eb89a29553229)

src/osdc/Objecter.cc

index 8b7aed696e0ad673d239e2870d63b99e7a11dc5b..a16e6542187c7d5748d0250d49008e54a7f63cdf 100644 (file)
@@ -4773,8 +4773,7 @@ void Objecter::handle_command_reply(MCommandReply *m)
                   << " not found" << dendl;
     m->put();
     sl.unlock();
-    if (s)
-      s->put();
+    s->put();
     return;
   }
 
@@ -4787,8 +4786,7 @@ void Objecter::handle_command_reply(MCommandReply *m)
                   << dendl;
     m->put();
     sl.unlock();
-    if (s)
-      s->put();
+    s->put();
     return;
   }
   if (c->poutbl) {
@@ -4802,8 +4800,7 @@ void Objecter::handle_command_reply(MCommandReply *m)
   sul.unlock();
 
   m->put();
-  if (s)
-    s->put();
+  s->put();
 }
 
 void Objecter::submit_command(CommandOp *c, ceph_tid_t *ptid)