File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -386,7 +386,6 @@ impl BusDevice for MmioDevice {
386386 "ack virtio features in invalid state 0x{:x}" ,
387387 self . driver_status
388388 ) ;
389- return ;
390389 }
391390 }
392391 0x24 => self . acked_features_select = v,
@@ -408,7 +407,6 @@ impl BusDevice for MmioDevice {
408407 0xa4 => self . update_queue_field ( |q| hi ( & mut q. used_ring , v) ) ,
409408 _ => {
410409 warn ! ( "unknown virtio mmio register write: 0x{:x}" , offset) ;
411- return ;
412410 }
413411 }
414412 }
@@ -417,7 +415,6 @@ impl BusDevice for MmioDevice {
417415 self . device . write_config ( offset - 0x100 , data)
418416 } else {
419417 warn ! ( "can not write to device config data area before driver is ready" ) ;
420- return ;
421418 }
422419 }
423420 _ => {
@@ -426,7 +423,6 @@ impl BusDevice for MmioDevice {
426423 offset,
427424 data. len( )
428425 ) ;
429- return ;
430426 }
431427 }
432428 }
Original file line number Diff line number Diff line change @@ -241,12 +241,12 @@ impl TcpIPv4Handler {
241241 self . enqueue_rst_config ( evict_tuple, rst_config) ;
242242 self . remove_connection ( evict_tuple) ;
243243 self . add_connection ( tuple, endpoint) ;
244- return Ok ( RecvEvent :: NewConnectionReplacing ) ;
244+ Ok ( RecvEvent :: NewConnectionReplacing )
245245 } else {
246246 // No room to accept the new connection. Try to enqueue a RST, and forget
247247 // about it.
248248 self . enqueue_rst ( tuple, & segment) ;
249- return Ok ( RecvEvent :: NewConnectionDropped ) ;
249+ Ok ( RecvEvent :: NewConnectionDropped )
250250 }
251251 } else {
252252 self . add_connection ( tuple, endpoint) ;
You can’t perform that action at this time.
0 commit comments