Revert mutex initialization check to look at mtx_description.

Pointed out by:	jlemon, jhb
This commit is contained in:
Jason Evans 2001-01-30 22:28:03 +00:00
parent 1acb27c64a
commit 62b119cabd

View File

@ -117,7 +117,7 @@ ifinit(dummy)
ifp->if_snd.ifq_maxlen = ifqmaxlen;
}
/* XXX This is an access violation of the mutex internals. */
if (ifp->if_snd.ifq_mtx.mtx_flags == 0) {
if (ifp->if_snd.ifq_mtx.mtx_description == NULL) {
printf("%s%d XXX: driver didn't initialize queue mtx\n",
ifp->if_name, ifp->if_unit);
mtx_init(&ifp->if_snd.ifq_mtx, "unknown", MTX_DEF);