common/buffer: remove repeated condtion-check.

In func push_back(), it already check buffe::ptr::length().

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
This commit is contained in:
Jianpeng Ma 2018-12-06 13:45:16 +08:00
parent 6db4c152a6
commit 88c4554af3

View File

@ -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));
}