File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
vm/devices/vmbus/vmbus_server/src Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -251,13 +251,11 @@ impl SavedStatePair {
251251 }
252252}
253253
254- struct VpToPhysicalNodeMap ( Option < Vec < u16 > > ) ;
254+ struct VpToPhysicalNodeMap ( Vec < u16 > ) ;
255255
256256impl VpToPhysicalNodeMap {
257257 fn get_numa_node ( & self , vp_index : u32 ) -> u16 {
258- self . 0 . as_ref ( ) . map_or ( 0 , |nodes| {
259- nodes. get ( vp_index as usize ) . copied ( ) . unwrap_or ( 0 )
260- } )
258+ self . 0 . get ( vp_index as usize ) . copied ( ) . unwrap_or ( 0 )
261259 }
262260}
263261
@@ -1159,7 +1157,7 @@ async fn proxy_thread(
11591157 hvsock_response_send,
11601158 vtl2_hvsock_response_send,
11611159 Arc :: clone ( & proxy) ,
1162- VpToPhysicalNodeMap ( vp_to_physical_node_map) ,
1160+ VpToPhysicalNodeMap ( vp_to_physical_node_map. unwrap_or_default ( ) ) ,
11631161 ) ) ;
11641162 let offers = task. run_proxy_actions ( send, flush_recv, await_flush) ;
11651163 let requests = task. run_server_requests (
You can’t perform that action at this time.
0 commit comments