File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -808,14 +808,12 @@ impl RuntimeApiController {
808
808
// vhost-user-block updates
809
809
if new_cfg. path_on_host . is_none ( ) && new_cfg. rate_limiter . is_none ( ) {
810
810
vmm. update_vhost_user_block_config ( & new_cfg. drive_id )
811
- . map ( |( ) | VmmData :: Empty )
812
811
. map_err ( DriveError :: DeviceUpdate ) ?;
813
812
}
814
813
815
814
// virtio-block updates
816
815
if let Some ( new_path) = new_cfg. path_on_host {
817
816
vmm. update_block_device_path ( & new_cfg. drive_id , new_path)
818
- . map ( |( ) | VmmData :: Empty )
819
817
. map_err ( DriveError :: DeviceUpdate ) ?;
820
818
}
821
819
if new_cfg. rate_limiter . is_some ( ) {
@@ -824,7 +822,6 @@ impl RuntimeApiController {
824
822
RateLimiterUpdate :: from ( new_cfg. rate_limiter ) . bandwidth ,
825
823
RateLimiterUpdate :: from ( new_cfg. rate_limiter ) . ops ,
826
824
)
827
- . map ( |( ) | VmmData :: Empty )
828
825
. map_err ( DriveError :: DeviceUpdate ) ?;
829
826
}
830
827
Ok ( VmmData :: Empty )
You can’t perform that action at this time.
0 commit comments