Skip to content
Snippets Groups Projects
Commit 6fe7bd93 authored by Thomas Jahns's avatar Thomas Jahns :cartwheel:
Browse files

Allow NULL ops parameter for resh[GS]etStatus.

parent c269056c
No related branches found
No related tags found
No related merge requests found
......@@ -668,8 +668,6 @@ void 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();
......@@ -718,7 +716,7 @@ int reshGetStatus ( cdiResH resH, const resOps * ops )
LIST_UNLOCK();
xassert(listElem && (!(listElem->status & RESH_IN_USE_BIT) || elemOps == ops));
xassert(listElem && (!(listElem->status & RESH_IN_USE_BIT) || elemOps == ops || !ops));
return 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