@@ -339,7 +339,7 @@ impl Balloon {
339339
340340 // Acknowledge the receipt of the descriptor.
341341 // 0 is number of bytes the device has written to memory.
342- queue. add_used ( head. index , 0 ) . map_err ( BalloonError :: Queue ) ?;
342+ queue. add_used ( head. index , 0 ) ?;
343343 needs_interrupt = true ;
344344 }
345345
@@ -376,7 +376,7 @@ impl Balloon {
376376 let mut needs_interrupt = false ;
377377
378378 while let Some ( head) = queue. pop ( ) {
379- queue. add_used ( head. index , 0 ) . map_err ( BalloonError :: Queue ) ?;
379+ queue. add_used ( head. index , 0 ) ?;
380380 needs_interrupt = true ;
381381 }
382382
@@ -397,9 +397,7 @@ impl Balloon {
397397 // We shouldn't ever have an extra buffer if the driver follows
398398 // the protocol, but return it if we find one.
399399 error ! ( "balloon: driver is not compliant, more than one stats buffer received" ) ;
400- self . queues [ STATS_INDEX ]
401- . add_used ( prev_stats_desc, 0 )
402- . map_err ( BalloonError :: Queue ) ?;
400+ self . queues [ STATS_INDEX ] . add_used ( prev_stats_desc, 0 ) ?;
403401 }
404402 for index in ( 0 ..head. len ) . step_by ( SIZE_OF_STAT ) {
405403 // Read the address at position `index`. The only case
@@ -447,9 +445,7 @@ impl Balloon {
447445 // The communication is driven by the device by using the buffer
448446 // and sending a used buffer notification
449447 if let Some ( index) = self . stats_desc_index . take ( ) {
450- self . queues [ STATS_INDEX ]
451- . add_used ( index, 0 )
452- . map_err ( BalloonError :: Queue ) ?;
448+ self . queues [ STATS_INDEX ] . add_used ( index, 0 ) ?;
453449 self . signal_used_queue ( )
454450 } else {
455451 error ! ( "Failed to update balloon stats, missing descriptor." ) ;
0 commit comments