mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 10:19:26 +00:00
Implify sessions freeing loop.
This commit is contained in:
parent
a05071e803
commit
f422e90330
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=181476
@ -152,8 +152,7 @@ padlock_detach(device_t dev)
|
||||
return (EBUSY);
|
||||
}
|
||||
}
|
||||
for (ses = TAILQ_FIRST(&sc->sc_sessions); ses != NULL;
|
||||
ses = TAILQ_FIRST(&sc->sc_sessions)) {
|
||||
while ((ses = TAILQ_FIRST(&sc->sc_sessions)) != NULL) {
|
||||
TAILQ_REMOVE(&sc->sc_sessions, ses, ses_next);
|
||||
free(ses, M_PADLOCK);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user