From bb7fd4df674a1de77ad55ea74df40712c8311679 Mon Sep 17 00:00:00 2001 From: Avner BenHanoch Date: Thu, 14 Apr 2016 11:53:45 +0300 Subject: [PATCH] xio: remove redundant variable and a redundant cast to it Signed-off-by: Avner BenHanoch --- src/msg/xio/XioPortal.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/msg/xio/XioPortal.h b/src/msg/xio/XioPortal.h index ca59b60eedb0..f5f5b48affda 100644 --- a/src/msg/xio/XioPortal.h +++ b/src/msg/xio/XioPortal.h @@ -209,7 +209,6 @@ public: // and push them in FIFO order to front of the input queue, // and mark the connection as flow-controlled XioSubmit::Queue requeue_q; - XioMsg *xmsg; while (q_iter != send_q.end()) { XioSubmit *xs = &(*q_iter); @@ -218,9 +217,8 @@ public: q_iter++; continue; } - xmsg = static_cast(xs); q_iter = send_q.erase(q_iter); - requeue_q.push_back(*xmsg); + requeue_q.push_back(*xs); } pthread_spin_lock(&xcon->sp); XioSubmit::Queue::const_iterator i1 = xcon->outgoing.requeue.begin(); -- 2.47.3