File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -1357,9 +1357,9 @@ USBPORT_InvalidateEndpointHandler(IN PDEVICE_OBJECT FdoDevice,
13571357 {
13581358 KeAcquireSpinLock (& FdoExtension -> EndpointListSpinLock , & OldIrql );
13591359
1360- Entry = & FdoExtension -> EndpointList ;
1361-
1362- while ( Entry && Entry != & FdoExtension -> EndpointList )
1360+ for ( Entry = FdoExtension -> EndpointList . Flink ;
1361+ Entry && Entry != & FdoExtension -> EndpointList ;
1362+ Entry = Entry -> Flink )
13631363 {
13641364 endpoint = CONTAINING_RECORD (Entry ,
13651365 USBPORT_ENDPOINT ,
@@ -1376,8 +1376,6 @@ USBPORT_InvalidateEndpointHandler(IN PDEVICE_OBJECT FdoDevice,
13761376 IsAddEntry = TRUE;
13771377 }
13781378 }
1379-
1380- Entry = endpoint -> EndpointLink .Flink ;
13811379 }
13821380
13831381 KeReleaseSpinLock (& FdoExtension -> EndpointListSpinLock , OldIrql );
You can’t perform that action at this time.
0 commit comments