From: Rishabh Kumar Date: Wed, 21 Dec 2016 15:09:44 +0000 (+0530) Subject: Remove dead code in pipe.cc X-Git-Tag: v12.0.0~406^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fa58ed6bc43a0d40bc209478a2d28cbab006609f;p=ceph.git Remove dead code in pipe.cc Fixes: http://tracker.ceph.com/issues/12684 Signed-off-by: Rishabh Kumar --- diff --git a/src/msg/simple/Pipe.cc b/src/msg/simple/Pipe.cc index 9233b5f6b660f..baea5f50f3016 100644 --- a/src/msg/simple/Pipe.cc +++ b/src/msg/simple/Pipe.cc @@ -2296,13 +2296,6 @@ int Pipe::do_sendmsg(struct msghdr *msg, unsigned len, bool more) { suppress_sigpipe(); while (len > 0) { - if (0) { // sanity - unsigned l = 0; - for (unsigned i=0; imsg_iovlen; i++) - l += msg->msg_iov[i].iov_len; - assert(l == len); - } - int r; #if defined(MSG_NOSIGNAL) r = ::sendmsg(sd, msg, MSG_NOSIGNAL | (more ? MSG_MORE : 0));