We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 750c458 commit e87fe89Copy full SHA for e87fe89
vhost-device-scmi/src/main.rs
@@ -93,12 +93,9 @@ impl TryFrom<args::ScmiArgs> for VuScmiConfig {
93
fn start_backend(config: VuScmiConfig) -> Result<()> {
94
loop {
95
debug!("Starting backend");
96
- let backend_instance = VuScmiBackend::new(&config);
97
- if let Err(error) = backend_instance {
98
- return Err(error.to_string());
99
- }
100
-
101
- let backend = Arc::new(RwLock::new(backend_instance.map_err(|e| format!("{e}"))?));
+ let backend = Arc::new(RwLock::new(
+ VuScmiBackend::new(&config).map_err(|e| e.to_string())?,
+ ));
102
let mut daemon = VhostUserDaemon::new(
103
"vhost-device-scmi".to_owned(),
104
backend.clone(),
0 commit comments