diff options
author | ps <ps@FreeBSD.org> | 2003-08-19 12:22:17 +0000 |
---|---|---|
committer | ps <ps@FreeBSD.org> | 2003-08-19 12:22:17 +0000 |
commit | dce9639a86a43f0535a19f51a127826679d30455 (patch) | |
tree | a24f62184d4261ba4e2f07ba6f77f7a8645924ea /sys/dev/twe | |
parent | a1cad5ae8bcaaca899fb2bb5e2624a48ccb33eb3 (diff) | |
download | FreeBSD-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.c | 4 |
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 |