summaryrefslogtreecommitdiffstats
path: root/sys/security
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2009-02-04 19:56:37 +0000
committerrwatson <rwatson@FreeBSD.org>2009-02-04 19:56:37 +0000
commit8ee4f3581dfe66619578345afd7b9fda64f8f2d1 (patch)
tree2ea4536e07e150edcb11edb447eb1f69d786a6b8 /sys/security
parent91ab06bc89c8b1ebcef65d274d75619329bb0119 (diff)
downloadFreeBSD-src-8ee4f3581dfe66619578345afd7b9fda64f8f2d1.zip
FreeBSD-src-8ee4f3581dfe66619578345afd7b9fda64f8f2d1.tar.gz
Eliminate the local variable 'ape' in audit_pipe_kqread(), as it's only
used for an assertion that we don't really need anymore. MFC after: 1 week Reported by: Christoph Mallon <christoph dot mallon at gmx dot de>
Diffstat (limited to 'sys/security')
-rw-r--r--sys/security/audit/audit_pipe.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/security/audit/audit_pipe.c b/sys/security/audit/audit_pipe.c
index afc7d54..318f41d 100644
--- a/sys/security/audit/audit_pipe.c
+++ b/sys/security/audit/audit_pipe.c
@@ -1077,18 +1077,13 @@ audit_pipe_kqfilter(struct cdev *dev, struct knote *kn)
static int
audit_pipe_kqread(struct knote *kn, long hint)
{
- struct audit_pipe_entry *ape;
struct audit_pipe *ap;
ap = (struct audit_pipe *)kn->kn_hook;
KASSERT(ap != NULL, ("audit_pipe_kqread: ap == NULL"));
-
AUDIT_PIPE_LOCK_ASSERT(ap);
if (ap->ap_qlen != 0) {
- ape = TAILQ_FIRST(&ap->ap_queue);
- KASSERT(ape != NULL, ("audit_pipe_kqread: ape == NULL"));
-
kn->kn_data = ap->ap_qbyteslen - ap->ap_qoffset;
return (1);
} else {
OpenPOWER on IntegriCloud