mirror of
https://github.com/ceph/ceph
synced 2025-01-19 09:32:00 +00:00
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:
parent
6db4c152a6
commit
88c4554af3
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user