From 5579e006db93e514ca9924303d4d3bdb756f4504 Mon Sep 17 00:00:00 2001 From: Andriy Gapon Date: Sat, 11 Dec 2010 10:14:08 +0000 Subject: [PATCH] fix incorrect use of atomic_set_xxx in cxgb There is no need to use an atomic operation at structure initialization time. Note that the file changed is not connected to the build at this time. Reviewed by: jhb (general issue) Approved by: np MFC after: 2 weeks --- sys/dev/cxgb/ulp/tom/cxgb_tom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/cxgb/ulp/tom/cxgb_tom.c b/sys/dev/cxgb/ulp/tom/cxgb_tom.c index 565479438b7..1328044b378 100644 --- a/sys/dev/cxgb/ulp/tom/cxgb_tom.c +++ b/sys/dev/cxgb/ulp/tom/cxgb_tom.c @@ -269,7 +269,7 @@ init_tid_tabs(struct tid_info *t, unsigned int ntids, t->atid_base = atid_base; t->afree = NULL; t->stids_in_use = t->atids_in_use = 0; - atomic_set_int(&t->tids_in_use, 0); + t->tids_in_use = 0; mtx_init(&t->stid_lock, "stid", NULL, MTX_DUPOK|MTX_DEF); mtx_init(&t->atid_lock, "atid", NULL, MTX_DUPOK|MTX_DEF);