From 90aec87ff90a98ae245af8bbb5cd900ab9100817 Mon Sep 17 00:00:00 2001 From: maxv Date: Tue, 29 May 2018 16:29:47 +0000 Subject: [PATCH] Remove aarp_clean, unused. By the way this function was probably buggy since it didn't reset aat_hold to NULL. --- sys/netatalk/aarp.c | 16 ++-------------- sys/netatalk/at_extern.h | 3 +-- 2 files changed, 3 insertions(+), 16 deletions(-) diff --git a/sys/netatalk/aarp.c b/sys/netatalk/aarp.c index 6fb90c522402..9e87c5b51079 100644 --- a/sys/netatalk/aarp.c +++ b/sys/netatalk/aarp.c @@ -1,4 +1,4 @@ -/* $NetBSD: aarp.c,v 1.41 2018/02/17 19:10:18 rjs Exp $ */ +/* $NetBSD: aarp.c,v 1.42 2018/05/29 16:29:47 maxv Exp $ */ /* * Copyright (c) 1990,1991 Regents of The University of Michigan. @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: aarp.c,v 1.41 2018/02/17 19:10:18 rjs Exp $"); +__KERNEL_RCSID(0, "$NetBSD: aarp.c,v 1.42 2018/05/29 16:29:47 maxv Exp $"); #include "opt_mbuftrace.h" #include "opt_atalk.h" @@ -673,15 +673,3 @@ aarpprobe(void *arp) aa->aa_probcnt--; mutex_exit(softnet_lock); } - -void -aarp_clean(void) -{ - struct aarptab *aat; - int i; - - callout_stop(&aarptimer_callout); - for (i = 0, aat = aarptab; i < AARPTAB_SIZE; i++, aat++) - if (aat->aat_hold) - m_freem(aat->aat_hold); -} diff --git a/sys/netatalk/at_extern.h b/sys/netatalk/at_extern.h index e499a678175b..5f48d365da98 100644 --- a/sys/netatalk/at_extern.h +++ b/sys/netatalk/at_extern.h @@ -1,4 +1,4 @@ -/* $NetBSD: at_extern.h,v 1.19 2016/01/20 21:59:19 riastradh Exp $ */ +/* $NetBSD: at_extern.h,v 1.20 2018/05/29 16:29:47 maxv Exp $ */ /* * Copyright (c) 1990,1994 Regents of The University of Michigan. @@ -50,7 +50,6 @@ int aarpresolve(struct ifnet *, struct mbuf *, const struct sockaddr_at *, u_char *); void aarpinput(struct ifnet *, struct mbuf *); int at_broadcast(const struct sockaddr_at *); -void aarp_clean(void); int at_control(u_long, void *, struct ifnet *); int at_inithead(void **, int); void at_purgeaddr(struct ifaddr *);