diff options
author | tjr <tjr@FreeBSD.org> | 2004-06-03 10:22:47 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2004-06-03 10:22:47 +0000 |
commit | 48c79c95214764bef303766598d6d6a9991e67e2 (patch) | |
tree | e8a1fefb2eea70873c2d3323b1f23e8900a373ec /sys/sparc64 | |
parent | 9fb4190027233d51f7fc2ae197e16db291fe2d84 (diff) | |
download | FreeBSD-src-48c79c95214764bef303766598d6d6a9991e67e2.zip FreeBSD-src-48c79c95214764bef303766598d6d6a9991e67e2.tar.gz |
Remove checks for curthread == NULL - it can't happen.
Diffstat (limited to 'sys/sparc64')
-rw-r--r-- | sys/sparc64/sparc64/uio_machdep.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/sparc64/sparc64/uio_machdep.c b/sys/sparc64/sparc64/uio_machdep.c index 8aef4fa..c9e3b6c 100644 --- a/sys/sparc64/sparc64/uio_machdep.c +++ b/sys/sparc64/sparc64/uio_machdep.c @@ -76,10 +76,8 @@ uiomove_fromphys(vm_page_t ma[], vm_offset_t offset, int n, struct uio *uio) ("uiomove_fromphys: mode")); KASSERT(uio->uio_segflg != UIO_USERSPACE || uio->uio_td == curthread, ("uiomove_fromphys proc")); - if (td != NULL) { - save = td->td_pflags & TDP_DEADLKTREAT; - td->td_pflags |= TDP_DEADLKTREAT; - } + save = td->td_pflags & TDP_DEADLKTREAT; + td->td_pflags |= TDP_DEADLKTREAT; while (n > 0 && uio->uio_resid) { iov = uio->uio_iov; cnt = iov->iov_len; @@ -131,7 +129,7 @@ uiomove_fromphys(vm_page_t ma[], vm_offset_t offset, int n, struct uio *uio) n -= cnt; } out: - if (td != NULL && save == 0) + if (save == 0) td->td_pflags &= ~TDP_DEADLKTREAT; return (error); } |