summaryrefslogtreecommitdiffstats
path: root/sys/dev/twe
diff options
context:
space:
mode:
authorps <ps@FreeBSD.org>2003-08-19 12:22:17 +0000
committerps <ps@FreeBSD.org>2003-08-19 12:22:17 +0000
commitdce9639a86a43f0535a19f51a127826679d30455 (patch)
treea24f62184d4261ba4e2f07ba6f77f7a8645924ea /sys/dev/twe
parenta1cad5ae8bcaaca899fb2bb5e2624a48ccb33eb3 (diff)
downloadFreeBSD-src-dce9639a86a43f0535a19f51a127826679d30455.zip
FreeBSD-src-dce9639a86a43f0535a19f51a127826679d30455.tar.gz
Don't tsleep on NULL
Diffstat (limited to 'sys/dev/twe')
-rw-r--r--sys/dev/twe/twe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/twe/twe.c b/sys/dev/twe/twe.c
index 59c737f..1ffb7b2 100644
--- a/sys/dev/twe/twe.c
+++ b/sys/dev/twe/twe.c
@@ -488,7 +488,7 @@ twe_ioctl(struct twe_softc *sc, int ioctlcmd, void *addr)
case TWEIO_COMMAND:
/* get a request */
while (twe_get_request(sc, &tr))
- tsleep(NULL, PPAUSE, "twioctl", hz);
+ tsleep(sc, PPAUSE, "twioctl", hz);
/*
* Save the command's request ID, copy the user-supplied command in,
@@ -955,7 +955,7 @@ twe_reset(struct twe_softc *sc)
/*
* Sleep for a short period to allow AENs to be signalled.
*/
- tsleep(NULL, PRIBIO, "twereset", hz);
+ tsleep(sc, PRIBIO, "twereset", hz);
/*
* Disable interrupts from the controller, and mask any accidental entry
OpenPOWER on IntegriCloud