]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/net: remove redundant std::move()
authorKefu Chai <kchai@redhat.com>
Thu, 30 May 2019 05:52:40 +0000 (13:52 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 30 May 2019 14:06:46 +0000 (22:06 +0800)
commitb300d60ffb196e5594fa57d06d0788ebc960f6f2
tree890d93552d2d1352a7364c9b515a00e7d00a275b
parent41d2a9578ae4f5f990571d108b9a1787afed1be3
crimson/net: remove redundant std::move()

see https://en.cppreference.com/w/cpp/language/copy_elision

it also silences warning like:

src/crimson/net/ProtocolV2.cc:146:26: warning: redundant move in return
statement [-Wredundant-move]
  146 |       return std::move(bl);
      |                          ^

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/net/ProtocolV2.cc