Skip to content
Snippets Groups Projects
Commit eada6655 authored by Thomas Jahns's avatar Thomas Jahns :cartwheel: Committed by Sergey Kosukhin
Browse files

Allow NULL ops parameter for resh[GS]etStatus.

parent f4b79ed6
No related branches found
No related tags found
2 merge requests!34Version 2.2.0,!13Consolidation with CDI-PIO (develop)
......@@ -654,8 +654,6 @@ reshSetStatus(cdiResH resH, const resOps *ops, int status)
namespaceTuple_t nspT;
listElem_t *listElem;
xassert((ops != NULL) ^ !(status & RESH_IN_USE_BIT));
LIST_INIT(1);
LIST_LOCK();
......@@ -696,7 +694,7 @@ reshGetStatus(cdiResH resH, const resOps *ops)
{
listElem_t *listElem = resHList[nsp].resources + nspT.idx;
const resOps *elemOps = listElem->res.v.ops;
xassert(listElem && (!(listElem->status & RESH_IN_USE_BIT) || elemOps == ops));
xassert(listElem && (!(listElem->status & RESH_IN_USE_BIT) || elemOps == ops || !ops));
status = listElem->status;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment