From: Casey Bodley Date: Fri, 24 Nov 2023 18:53:58 +0000 (-0500) Subject: crypto/qat: remove unused captures of 'this' X-Git-Tag: v19.1.0~340^2~14 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=10a5cb84f41495f8f5228333354a3d269dc286d3;p=ceph.git crypto/qat: remove unused captures of 'this' Signed-off-by: Casey Bodley --- diff --git a/src/crypto/qat/qcccrypto.cc b/src/crypto/qat/qcccrypto.cc index d99912d9c229e..98910426f99b5 100644 --- a/src/crypto/qat/qcccrypto.cc +++ b/src/crypto/qat/qcccrypto.cc @@ -66,7 +66,7 @@ auto QccCrypto::async_get_instance(CompletionToken&& token) { // keep a few objects to wait QAT instance to make sure qat full utilization as much as possible, // that is, QAT don't need to wait for new objects to ensure // that QAT will not be in a free state as much as possible - instance_completions.push_back([this, ex, handler2 = std::move(handler1)](int inst)mutable{ + instance_completions.push_back([ex, handler2 = std::move(handler1)](int inst)mutable{ boost::asio::post(ex, std::bind(handler2, inst)); }); } else { @@ -479,7 +479,7 @@ auto QatCrypto::async_perform_op(int avail_inst, std::span pO using Signature = void(CpaStatus); async_completion init(token); auto ex = boost::asio::get_associated_executor(init.completion_handler); - completion_handler = [this, ex, handler = init.completion_handler](CpaStatus stat) { + completion_handler = [ex, handler = init.completion_handler](CpaStatus stat) { boost::asio::post(ex, std::bind(handler, stat)); };