diff options
Diffstat (limited to 'sys/nfsclient/nfs_socket.c')
-rw-r--r-- | sys/nfsclient/nfs_socket.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/nfsclient/nfs_socket.c b/sys/nfsclient/nfs_socket.c index abb89d3..9f0a3c4 100644 --- a/sys/nfsclient/nfs_socket.c +++ b/sys/nfsclient/nfs_socket.c @@ -1262,12 +1262,9 @@ nfs_sndlock(struct nfsreq *rep) struct thread *td; int slpflag = 0, slptimeo = 0; - if (rep) { - td = rep->r_td; - if (rep->r_nmp->nm_flag & NFSMNT_INT) - slpflag = PCATCH; - } else - td = NULL; + td = rep->r_td; + if (rep->r_nmp->nm_flag & NFSMNT_INT) + slpflag = PCATCH; while (*statep & NFSSTA_SNDLOCK) { if (nfs_sigintr(rep->r_nmp, rep, td)) return (EINTR); |