From: Jianpeng Ma Date: Mon, 9 Apr 2018 00:44:29 +0000 (+0800) Subject: osdc: cleanup code. X-Git-Tag: v12.2.13~128^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=44e7136160907e6f217ee195774386bfba784440;p=ceph.git osdc: cleanup code. Remvoe useless conditon. Signed-off-by: Jianpeng Ma (cherry picked from commit 964068ca8f60a9409abbfdd5836eb89a29553229) --- diff --git a/src/osdc/Objecter.cc b/src/osdc/Objecter.cc index 8b7aed696e0a..a16e6542187c 100644 --- a/src/osdc/Objecter.cc +++ b/src/osdc/Objecter.cc @@ -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)