MFC r270225 (by jhb): Unexpand TAILQ_FOREACH().
This commit is contained in:
parent
9b99abcebd
commit
47dc3fe588
@ -326,15 +326,13 @@ scsi_low_find_ccb(slp, target, lun, osdep)
|
|||||||
if ((cb = slp->sl_Qnexus) != NULL && cb->osdep == osdep)
|
if ((cb = slp->sl_Qnexus) != NULL && cb->osdep == osdep)
|
||||||
return cb;
|
return cb;
|
||||||
|
|
||||||
for (cb = TAILQ_FIRST(&slp->sl_start); cb != NULL;
|
TAILQ_FOREACH(cb, &slp->sl_start, ccb_chain)
|
||||||
cb = TAILQ_NEXT(cb, ccb_chain))
|
|
||||||
{
|
{
|
||||||
if (cb->osdep == osdep)
|
if (cb->osdep == osdep)
|
||||||
return cb;
|
return cb;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (cb = TAILQ_FIRST(&li->li_discq); cb != NULL;
|
TAILQ_FOREACH(cb, &li->li_discq, ccb_chain)
|
||||||
cb = TAILQ_NEXT(cb, ccb_chain))
|
|
||||||
{
|
{
|
||||||
if (cb->osdep == osdep)
|
if (cb->osdep == osdep)
|
||||||
return cb;
|
return cb;
|
||||||
@ -4184,8 +4182,7 @@ scsi_low_info(slp, ti, s)
|
|||||||
printf(">>>>> SCSI_LOW_INFO(0x%lx): %s\n", (u_long) slp->sl_Tnexus, s);
|
printf(">>>>> SCSI_LOW_INFO(0x%lx): %s\n", (u_long) slp->sl_Tnexus, s);
|
||||||
if (ti == NULL)
|
if (ti == NULL)
|
||||||
{
|
{
|
||||||
for (ti = TAILQ_FIRST(&slp->sl_titab); ti != NULL;
|
TAILQ_FOREACH(ti, &slp->sl_titab, ti_chain)
|
||||||
ti = TAILQ_NEXT(ti, ti_chain))
|
|
||||||
{
|
{
|
||||||
scsi_low_print(slp, ti);
|
scsi_low_print(slp, ti);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user