X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/e5568f75972dfc723778653c11cb6b4dc825716a..c0fea4742e91338fffdcf79f86a7c1d5e2b97eb1:/bsd/netat/adsp_attention.c diff --git a/bsd/netat/adsp_attention.c b/bsd/netat/adsp_attention.c index 18ce61f65..726692d45 100644 --- a/bsd/netat/adsp_attention.c +++ b/bsd/netat/adsp_attention.c @@ -70,11 +70,8 @@ * errAttention attention message too long * errAborted request aborted by Remove or Close call */ -int adspAttention(sp, pb) /* (DSPPBPtr pb) */ - register struct adspcmd *pb; - register CCBPtr sp; +int adspAttention(register struct adspcmd *pb, register CCBPtr sp) { - int s; register gbuf_t *mp, *nmp; unsigned char uerr; @@ -117,16 +114,13 @@ l_err: } } pb->ioDirection = 1; /* outgoing attention data */ - ATDISABLE(s, sp->lock); if (sp->sapb) { /* Pending attentions already? */ - qAddToEnd(&sp->sapb, pb); /* Just add to end of queue */ - ATENABLE(s, sp->lock); + qAddToEnd(&sp->sapb, pb); /* Just add to end of queue */ } else { - sp->sendAttnData = 1; /* Start off this attention */ - pb->qLink = 0; - sp->sapb = pb; - ATENABLE(s, sp->lock); - CheckSend(sp); + sp->sendAttnData = 1; /* Start off this attention */ + pb->qLink = 0; + sp->sapb = pb; + CheckSend(sp); } pb->ioResult = 1; /* indicate that the IO is not complete */ return 0;