]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crypto/qat: remove unused captures of 'this'
authorCasey Bodley <cbodley@redhat.com>
Fri, 24 Nov 2023 18:53:58 +0000 (13:53 -0500)
committerCasey Bodley <cbodley@redhat.com>
Wed, 7 Feb 2024 15:37:47 +0000 (10:37 -0500)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/crypto/qat/qcccrypto.cc

index d99912d9c229e2a6f3e4477afc54aa87cd83db51..98910426f99b5054d8bcbbbc9c7a479df1a86c7c 100644 (file)
@@ -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<CpaCySymDpOpData*> pO
   using Signature = void(CpaStatus);
   async_completion<CompletionToken, Signature> 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));
   };