diff options
author | Paul Saab <ps@FreeBSD.org> | 2003-08-19 12:22:17 +0000 |
---|---|---|
committer | Paul Saab <ps@FreeBSD.org> | 2003-08-19 12:22:17 +0000 |
commit | ad8fc00c7580af2a653e0eea385c9ead93a133e0 (patch) | |
tree | a24f62184d4261ba4e2f07ba6f77f7a8645924ea /sys/dev/twe/twe.c | |
parent | 39082bb4a5783c679bef4a1a0098543563e33a73 (diff) | |
download | src-ad8fc00c7580af2a653e0eea385c9ead93a133e0.tar.gz src-ad8fc00c7580af2a653e0eea385c9ead93a133e0.zip |
Don't tsleep on NULL
Notes
Notes:
svn path=/head/; revision=119124
Diffstat (limited to 'sys/dev/twe/twe.c')
-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 59c737f51457..1ffb7b21b76f 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 |