Add a couple of XXX comments where the intent is not clear.

Found by:       FlexeLint
This commit is contained in:
Poul-Henning Kamp 2003-05-31 20:13:58 +00:00
parent 74f1af0191
commit 4fe77d64a0

View File

@ -155,6 +155,7 @@ msleep(ident, mtx, priority, wmesg, timo)
if (KTRPOINT(td, KTR_CSW))
ktrcsw(1, 0);
#endif
/* XXX: mtx == NULL ?? */
WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK, &mtx->mtx_object,
"Sleeping on \"%s\"", wmesg);
KASSERT(timo != 0 || mtx_owned(&Giant) || mtx != NULL,
@ -589,6 +590,7 @@ setrunnable(struct thread *td)
*/
if (td->td_inhibitors != TDI_SWAPPED)
return;
/* XXX: intentional fall-through ? */
case TDS_CAN_RUN:
break;
default: