mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
Remove a couple of #ifdef 0'ed code blocks left over from Atheros debugging.
Remember to reset ndis_pendingreq to NULL when bailing out of ndis_set_info() or ndis_get_info() due to miniportadapterctx not being set.
This commit is contained in:
parent
4e01247407
commit
76e96613b2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=144317
@ -1190,6 +1190,7 @@ ndis_set_info(arg, oid, buf, buflen)
|
||||
adapter = sc->ndis_block->nmb_miniportadapterctx;
|
||||
|
||||
if (adapter == NULL || setfunc == NULL) {
|
||||
sc->ndis_block->nmb_pendingreq = NULL;
|
||||
KeReleaseSpinLock(&sc->ndis_block->nmb_lock, irql);
|
||||
return(ENXIO);
|
||||
}
|
||||
@ -1574,15 +1575,7 @@ ndis_isr(arg, ourintr, callhandler)
|
||||
if (adapter == NULL || isrfunc == NULL)
|
||||
return(ENXIO);
|
||||
|
||||
#ifdef notdef
|
||||
if (NDIS_SERIALIZED(sc->ndis_block))
|
||||
mtx_lock(&sc->ndis_block->nmb_serialmtx);
|
||||
#endif
|
||||
MSCALL3(isrfunc, &accepted, &queue, adapter);
|
||||
#ifdef notdef
|
||||
if (NDIS_SERIALIZED(sc->ndis_block))
|
||||
mtx_unlock(&sc->ndis_block->nmb_serialmtx);
|
||||
#endif
|
||||
|
||||
*ourintr = accepted;
|
||||
*callhandler = queue;
|
||||
@ -1649,6 +1642,7 @@ ndis_get_info(arg, oid, buf, buflen)
|
||||
adapter = sc->ndis_block->nmb_miniportadapterctx;
|
||||
|
||||
if (adapter == NULL || queryfunc == NULL) {
|
||||
sc->ndis_block->nmb_pendingreq = NULL;
|
||||
KeReleaseSpinLock(&sc->ndis_block->nmb_lock, irql);
|
||||
return(ENXIO);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user