Skip to content

Commit

Permalink
Merge pull request ceph#8023 from roidayan/xio-remove_unused_variable
Browse files Browse the repository at this point in the history
xio: remove unused variable

Reviewed-by: Matt Benjamin <[email protected]>
Reviewed-by: Kefu Chai <[email protected]>
  • Loading branch information
tchaikov committed Mar 11, 2016
2 parents 164de7a + 8affb39 commit 9e86b53
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/msg/xio/XioMessenger.cc
Original file line number Diff line number Diff line change
Expand Up @@ -693,17 +693,13 @@ xio_place_buffers(buffer::list& bl, XioMsg *xmsg, struct xio_msg*& req,

int XioMessenger::bind(const entity_addr_t& addr)
{
const entity_addr_t *a = &addr;
struct entity_addr_t _addr = *a;

if (a->is_blank_ip()) {
if (addr.is_blank_ip()) {
lderr(cct) << "ERROR: need rdma ip for remote use! " << dendl;
cout << "Error: xio bind failed. public/cluster ip not specified" << std::endl;
return -1;
}

entity_addr_t shift_addr = *a;

entity_addr_t shift_addr = addr;
string base_uri = xio_uri_from_entity(cct->_conf->xio_transport_type,
shift_addr, false /* want_port */);
ldout(cct,4) << "XioMessenger " << this << " bind: xio_uri "
Expand Down

0 comments on commit 9e86b53

Please sign in to comment.