fix wrong assert in slot_detach(), ok armani@

This commit is contained in:
Alexandre Ratchov 2012-11-10 16:04:12 +01:00
parent 6b88502d9a
commit 3e17fc5717
1 changed files with 2 additions and 2 deletions

View File

@ -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