diff options
author | alfred <alfred@FreeBSD.org> | 2003-03-26 01:46:11 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2003-03-26 01:46:11 +0000 |
commit | 5fb77f7c70d3cbf27395bd9a6199fb665398515c (patch) | |
tree | f8251e24d08501c8230a430bffdf6ba55ba47e00 /sys/nfsclient/nfs_socket.c | |
parent | cc265842d3d176898751d931bba3a5163801f3c8 (diff) | |
download | FreeBSD-src-5fb77f7c70d3cbf27395bd9a6199fb665398515c.zip FreeBSD-src-5fb77f7c70d3cbf27395bd9a6199fb665398515c.tar.gz |
req can not be NULL or we'd die.
Sponsored by: RED
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); |