diff options
| author | riastradh <riastradh@NetBSD.org> | 2023-02-24 11:02:45 +0000 |
|---|---|---|
| committer | riastradh <riastradh@NetBSD.org> | 2023-02-24 11:02:45 +0000 |
| commit | 449201b87116deae5e307c9580da0d8bf416026f (patch) | |
| tree | b0745821b817919f02b4f1234284786b19466704 /sys/net | |
| parent | e9b81bf09faef4f635f647ef2b068ce33dc1f445 (diff) | |
sys/net/if.c: Eliminate __HAVE_ATOMIC_AS_MEMBAR conditionals.
Discussed on tech-kern:
https://mail-index.netbsd.org/tech-kern/2023/02/23/msg028729.html
Diffstat (limited to 'sys/net')
| -rw-r--r-- | sys/net/if.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/net/if.c b/sys/net/if.c index d0cf79f17cb..2d879954041 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -1,4 +1,4 @@ -/* $NetBSD: if.c,v 1.528 2022/11/25 06:18:42 msaitoh Exp $ */ +/* $NetBSD: if.c,v 1.529 2023/02/24 11:02:45 riastradh Exp $ */ /*- * Copyright (c) 1999, 2000, 2001, 2008 The NetBSD Foundation, Inc. @@ -90,7 +90,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.528 2022/11/25 06:18:42 msaitoh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.529 2023/02/24 11:02:45 riastradh Exp $"); #if defined(_KERNEL_OPT) #include "opt_inet.h" @@ -1797,14 +1797,10 @@ ifafree(struct ifaddr *ifa) KASSERT(ifa != NULL); KASSERTMSG(ifa->ifa_refcnt > 0, "ifa_refcnt=%d", ifa->ifa_refcnt); -#ifndef __HAVE_ATOMIC_AS_MEMBAR membar_release(); -#endif if (atomic_dec_uint_nv(&ifa->ifa_refcnt) != 0) return; -#ifndef __HAVE_ATOMIC_AS_MEMBAR membar_acquire(); -#endif free(ifa, M_IFADDR); } |
