svn commit: r333843 - head/sys/kern
Matt Macy
mmacy at FreeBSD.org
Sat May 19 04:10:54 UTC 2018
Author: mmacy
Date: Sat May 19 04:10:53 2018
New Revision: 333843
URL: https://svnweb.freebsd.org/changeset/base/333843
Log:
mqueue: avoid unused variables
Modified:
head/sys/kern/uipc_mqueue.c
Modified: head/sys/kern/uipc_mqueue.c
==============================================================================
--- head/sys/kern/uipc_mqueue.c Sat May 19 04:09:58 2018 (r333842)
+++ head/sys/kern/uipc_mqueue.c Sat May 19 04:10:53 2018 (r333843)
@@ -1343,14 +1343,12 @@ mqfs_read(struct vop_read_args *ap)
char buf[80];
struct vnode *vp = ap->a_vp;
struct uio *uio = ap->a_uio;
- struct mqfs_node *pn;
struct mqueue *mq;
int len, error;
if (vp->v_type != VREG)
return (EINVAL);
- pn = VTON(vp);
mq = VTOMQ(vp);
snprintf(buf, sizeof(buf),
"QSIZE:%-10ld MAXMSG:%-10ld CURMSG:%-10ld MSGSIZE:%-10ld\n",
@@ -2439,11 +2437,13 @@ sys_kmq_notify(struct thread *td, struct kmq_notify_ar
static void
mqueue_fdclose(struct thread *td, int fd, struct file *fp)
{
- struct filedesc *fdp;
struct mqueue *mq;
+#ifdef INVARIANTS
+ struct filedesc *fdp;
fdp = td->td_proc->p_fd;
FILEDESC_LOCK_ASSERT(fdp);
+#endif
if (fp->f_ops == &mqueueops) {
mq = FPTOMQ(fp);
More information about the svn-src-all
mailing list