1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-04 12:52:15 +00:00

- Don't worry about the previous state of the card (insert/removed), and

instead Do The Right Thing when the kernel states a card was
  inserted/removed.  This isn't a complete fix, but better than nothing.

Reviewed by:	Guido van Rooij <guido@gvr.org>
This commit is contained in:
Nate Williams 1997-11-25 19:15:59 +00:00
parent 0690c6fe58
commit 4d1fabf000
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=31414

View File

@ -26,7 +26,7 @@
#ifndef lint
static const char rcsid[] =
"$Id: cardd.c,v 1.20 1997/10/28 17:51:25 nate Exp $";
"$Id: cardd.c,v 1.21 1997/11/19 02:31:37 nate Exp $";
#endif /* not lint */
#include <fcntl.h>
@ -216,8 +216,10 @@ slot_change(struct slot *sp)
logerr("ioctl (PIOCGSTATE)");
return;
}
#ifdef DEBUG
if (state.state == sp->state)
return;
logmsg("State same as before, continuing anyway");
#endif
sp->state = state.state;
switch (sp->state) {
case empty: