summaryrefslogtreecommitdiffstats
path: root/sys/dev/cxgb/ulp
diff options
context:
space:
mode:
authoravg <avg@FreeBSD.org>2010-12-11 10:14:08 +0000
committeravg <avg@FreeBSD.org>2010-12-11 10:14:08 +0000
commit6d67849166d9c7f5130de4b97d87bf00d71d97e8 (patch)
tree0ded2c798cc3b859c032f17e2d7f81da4a552eed /sys/dev/cxgb/ulp
parent0b5bdd518a11b52d15aff2e28c8409db9a134c6d (diff)
downloadFreeBSD-src-6d67849166d9c7f5130de4b97d87bf00d71d97e8.zip
FreeBSD-src-6d67849166d9c7f5130de4b97d87bf00d71d97e8.tar.gz
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
Diffstat (limited to 'sys/dev/cxgb/ulp')
-rw-r--r--sys/dev/cxgb/ulp/tom/cxgb_tom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/cxgb/ulp/tom/cxgb_tom.c b/sys/dev/cxgb/ulp/tom/cxgb_tom.c
index 5654794..1328044 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);
OpenPOWER on IntegriCloud