mirror of
https://github.com/ericonr/sndio.git
synced 2024-02-18 04:45:21 -06:00
fix wrong assert in slot_detach(), ok armani@
This commit is contained in:
parent
6b88502d9a
commit
3e17fc5717
@ -1905,9 +1905,9 @@ slot_detach(struct slot *s)
|
||||
#endif
|
||||
for (ps = &s->dev->slot_list; *ps != s; ps = &(*ps)->next) {
|
||||
#ifdef DEBUG
|
||||
if (log_level >= 3) {
|
||||
if (s == NULL) {
|
||||
slot_log(s);
|
||||
log_puts(": can't detach, no on list\n");
|
||||
log_puts(": can't detach, not on list\n");
|
||||
panic();
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user