mqueue: avoid unused variables
This commit is contained in:
parent
cd6ba3f086
commit
4949ad7264
@ -1343,14 +1343,12 @@ mqfs_read(struct vop_read_args *ap)
|
|||||||
char buf[80];
|
char buf[80];
|
||||||
struct vnode *vp = ap->a_vp;
|
struct vnode *vp = ap->a_vp;
|
||||||
struct uio *uio = ap->a_uio;
|
struct uio *uio = ap->a_uio;
|
||||||
struct mqfs_node *pn;
|
|
||||||
struct mqueue *mq;
|
struct mqueue *mq;
|
||||||
int len, error;
|
int len, error;
|
||||||
|
|
||||||
if (vp->v_type != VREG)
|
if (vp->v_type != VREG)
|
||||||
return (EINVAL);
|
return (EINVAL);
|
||||||
|
|
||||||
pn = VTON(vp);
|
|
||||||
mq = VTOMQ(vp);
|
mq = VTOMQ(vp);
|
||||||
snprintf(buf, sizeof(buf),
|
snprintf(buf, sizeof(buf),
|
||||||
"QSIZE:%-10ld MAXMSG:%-10ld CURMSG:%-10ld MSGSIZE:%-10ld\n",
|
"QSIZE:%-10ld MAXMSG:%-10ld CURMSG:%-10ld MSGSIZE:%-10ld\n",
|
||||||
@ -2439,11 +2437,13 @@ sys_kmq_notify(struct thread *td, struct kmq_notify_args *uap)
|
|||||||
static void
|
static void
|
||||||
mqueue_fdclose(struct thread *td, int fd, struct file *fp)
|
mqueue_fdclose(struct thread *td, int fd, struct file *fp)
|
||||||
{
|
{
|
||||||
struct filedesc *fdp;
|
|
||||||
struct mqueue *mq;
|
struct mqueue *mq;
|
||||||
|
#ifdef INVARIANTS
|
||||||
|
struct filedesc *fdp;
|
||||||
|
|
||||||
fdp = td->td_proc->p_fd;
|
fdp = td->td_proc->p_fd;
|
||||||
FILEDESC_LOCK_ASSERT(fdp);
|
FILEDESC_LOCK_ASSERT(fdp);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (fp->f_ops == &mqueueops) {
|
if (fp->f_ops == &mqueueops) {
|
||||||
mq = FPTOMQ(fp);
|
mq = FPTOMQ(fp);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user