5047 don't use atomic_*_nv if you discard the return value
Reviewed by: Garrett D'Amore <garrett@damore.org>
Reviewed by: Jason King <jason.brian.king@gmail.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Approved by: Robert Mustacchi <rm@joyent.com>
diff --git a/usr/src/uts/common/io/trill.c b/usr/src/uts/common/io/trill.c
index 634ae34..98cf335 100644
--- a/usr/src/uts/common/io/trill.c
+++ b/usr/src/uts/common/io/trill.c
@@ -1113,7 +1113,7 @@
if (tnp->tn_tsp != NULL)
trill_sock_unref(tnp->tn_tsp);
trill_node_free(tnp);
- (void) atomic_dec_uint_nv(&tip->ti_nodecount);
+ atomic_dec_uint(&tip->ti_nodecount);
}
}