diff options
author | davidxu <davidxu@FreeBSD.org> | 2005-11-27 22:59:47 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2005-11-27 22:59:47 +0000 |
commit | 0b4ce8e3e1cb11709c2122272d006774ad389a59 (patch) | |
tree | de0103b560d7aa91d5aa33aa25823cba454304d9 /sys/kern | |
parent | 70cc5f871a65079a3b422b34634a131e9b16583f (diff) | |
download | FreeBSD-src-0b4ce8e3e1cb11709c2122272d006774ad389a59.zip FreeBSD-src-0b4ce8e3e1cb11709c2122272d006774ad389a59.tar.gz |
Fix a stupid compiler warining, remove a redundant line.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/uipc_mqueue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/uipc_mqueue.c b/sys/kern/uipc_mqueue.c index 0f50727..81495ea 100644 --- a/sys/kern/uipc_mqueue.c +++ b/sys/kern/uipc_mqueue.c @@ -1838,6 +1838,7 @@ mq_open(struct thread *td, struct mq_open_args *uap) fdp = td->td_proc->p_fd; flags = FFLAGS(uap->flags); cmode = (((uap->mode & ~fdp->fd_cmask) & ALLPERMS) & ~S_ISTXT); + mq = NULL; if ((flags & O_CREAT) && (uap->attr != NULL)) { error = copyin(uap->attr, &attr, sizeof(attr)); if (error) @@ -1863,7 +1864,6 @@ mq_open(struct thread *td, struct mq_open_args *uap) if (len < 2 || path[0] != '/' || index(path + 1, '/') != NULL) return (EINVAL); - fdp = td->td_proc->p_fd; error = falloc(td, &fp, &fd); if (error) return (error); |