From 884d9dc279196ab64357b0668f8ae629f4b13be1 Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Tue, 30 Apr 2024 13:13:15 +0200 Subject: [PATCH] L #-: Remove unused variable --- src/dm/DispatchManagerActions.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/dm/DispatchManagerActions.cc b/src/dm/DispatchManagerActions.cc index 0cd4e63eba5..dffbd9a9655 100644 --- a/src/dm/DispatchManagerActions.cc +++ b/src/dm/DispatchManagerActions.cc @@ -2870,19 +2870,17 @@ int DispatchManager::backup_cancel(int vid, int DispatchManager::restore(int vid, int img_id, int inc_id, int disk_id, const RequestAttributes& ra, std::string& error_str) { - ostringstream oss; - auto vm = vmpool->get(vid); if ( vm == nullptr ) { - error_str ="Could not restore VM, it does not exist"; + error_str = "Could not restore VM, it does not exist"; return -1; } if (vm->get_state() != VirtualMachine::POWEROFF) { - error_str ="Could not restore VM, it must be in poweroff"; + error_str = "Could not restore VM, it must be in poweroff"; return -1; }