X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/13fec9890cf095cc781fdf7b8917cb03bf32dd4c..c0fea4742e91338fffdcf79f86a7c1d5e2b97eb1:/bsd/netat/adsp_attention.c diff --git a/bsd/netat/adsp_attention.c b/bsd/netat/adsp_attention.c index 8a0510ac4..726692d45 100644 --- a/bsd/netat/adsp_attention.c +++ b/bsd/netat/adsp_attention.c @@ -72,7 +72,6 @@ */ int adspAttention(register struct adspcmd *pb, register CCBPtr sp) { - int s; register gbuf_t *mp, *nmp; unsigned char uerr; @@ -115,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;