From: Ilya Dryomov Date: Sun, 14 Jul 2024 17:21:47 +0000 (+0200) Subject: librbd/api: clean up leftovers in Migration::prepare_import() X-Git-Tag: v18.2.5~459^2~12 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=55572a190a8155905f358a8b79a82837c19df596;p=ceph.git librbd/api: clean up leftovers in Migration::prepare_import() Dead code after return and an unused variable. Signed-off-by: Ilya Dryomov (cherry picked from commit b92ad49a35536fff87d840ffbf171aee61b05424) --- diff --git a/src/librbd/api/Migration.cc b/src/librbd/api/Migration.cc index 957c872ac5515..0ed98971f234d 100644 --- a/src/librbd/api/Migration.cc +++ b/src/librbd/api/Migration.cc @@ -540,7 +540,6 @@ int Migration::prepare_import( return r; } - auto asio_engine = src_image_ctx->asio_engine; BOOST_SCOPE_EXIT_TPL(src_image_ctx) { src_image_ctx->state->close(); } BOOST_SCOPE_EXIT_END; @@ -581,11 +580,6 @@ int Migration::prepare_import( Migration migration(src_image_ctx, dst_image_ctx, dst_migration_spec, opts, nullptr); return migration.prepare_import(); - if (r < 0) { - return r; - } - - return 0; } template