mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
This commit is contained in:
parent
914e11a72b
commit
5579e006db
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue