summaryrefslogtreecommitdiffstats
path: root/sys/security/mac_portacl
diff options
context:
space:
mode:
authorcperciva <cperciva@FreeBSD.org>2004-05-15 20:55:19 +0000
committercperciva <cperciva@FreeBSD.org>2004-05-15 20:55:19 +0000
commitbe93053d2f248c11295746e763dc22da8841b8d2 (patch)
tree39d5a4b73c945a1d383341b9e33f21b1970b776c /sys/security/mac_portacl
parent3dceafd0adf0c7f5cb6a897520942df7014f526f (diff)
downloadFreeBSD-src-be93053d2f248c11295746e763dc22da8841b8d2.zip
FreeBSD-src-be93053d2f248c11295746e763dc22da8841b8d2.tar.gz
Remove dead code. (This loop counted the number of rules, but the count
was never used.) Reported by: pjd Approved by: rwatson
Diffstat (limited to 'sys/security/mac_portacl')
-rw-r--r--sys/security/mac_portacl/mac_portacl.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/sys/security/mac_portacl/mac_portacl.c b/sys/security/mac_portacl/mac_portacl.c
index 4b671c6..7524155 100644
--- a/sys/security/mac_portacl/mac_portacl.c
+++ b/sys/security/mac_portacl/mac_portacl.c
@@ -142,13 +142,6 @@ static void
toast_rules(struct rulehead *head)
{
struct rule *rule;
- int i;
-
- i = 0;
- for (rule = TAILQ_FIRST(head);
- rule != NULL;
- rule = TAILQ_NEXT(rule, r_entries))
- i++;
while ((rule = TAILQ_FIRST(head)) != NULL) {
TAILQ_REMOVE(head, rule, r_entries);
OpenPOWER on IntegriCloud