@@ -527,10 +527,7 @@ impl Queue {
527
527
528
528
/// Try to pop the first available descriptor chain from the avail ring.
529
529
/// If no descriptor is available, enable notifications.
530
- pub fn pop_or_enable_notification < M : GuestMemory > (
531
- & mut self ,
532
- _mem : & M ,
533
- ) -> Option < DescriptorChain > {
530
+ pub fn pop_or_enable_notification ( & mut self ) -> Option < DescriptorChain > {
534
531
if !self . uses_notif_suppression {
535
532
return self . pop ( ) ;
536
533
}
@@ -1363,7 +1360,7 @@ mod tests {
1363
1360
1364
1361
// Walk the last chain again (three descriptors) using pop_or_enable_notification().
1365
1362
let d = q
1366
- . pop_or_enable_notification ( m )
1363
+ . pop_or_enable_notification ( )
1367
1364
. unwrap ( )
1368
1365
. next_descriptor ( )
1369
1366
. unwrap ( )
@@ -1375,13 +1372,13 @@ mod tests {
1375
1372
// There are no more descriptors, but notification suppression is disabled.
1376
1373
// Calling pop_or_enable_notification() should simply return None.
1377
1374
assert_eq ! ( q. avail_event( m) , 0 ) ;
1378
- assert ! ( q. pop_or_enable_notification( m ) . is_none( ) ) ;
1375
+ assert ! ( q. pop_or_enable_notification( ) . is_none( ) ) ;
1379
1376
assert_eq ! ( q. avail_event( m) , 0 ) ;
1380
1377
1381
1378
// There are no more descriptors and notification suppression is enabled. Calling
1382
1379
// pop_or_enable_notification() should enable notifications.
1383
1380
q. enable_notif_suppression ( ) ;
1384
- assert ! ( q. pop_or_enable_notification( m ) . is_none( ) ) ;
1381
+ assert ! ( q. pop_or_enable_notification( ) . is_none( ) ) ;
1385
1382
assert_eq ! ( q. avail_event( m) , 2 ) ;
1386
1383
}
1387
1384
@@ -1458,7 +1455,7 @@ mod tests {
1458
1455
// driver sets available index to suspicious value.
1459
1456
vq. avail . idx . set ( 6 ) ;
1460
1457
1461
- q. pop_or_enable_notification ( m ) ;
1458
+ q. pop_or_enable_notification ( ) ;
1462
1459
}
1463
1460
1464
1461
#[ test]
0 commit comments