diff --git a/src/common/buffer.cc b/src/common/buffer.cc index b1c533ed310..734cc20bbd4 100644 --- a/src/common/buffer.cc +++ b/src/common/buffer.cc @@ -1539,13 +1539,11 @@ using namespace ceph; void buffer::list::append(const ptr& bp) { - if (bp.length()) push_back(bp); } void buffer::list::append(ptr&& bp) { - if (bp.length()) push_back(std::move(bp)); }