mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 17:22:46 -04:00
cxgbe(4): Make it clear that VI_INIT_DONE implies vi->ntxq > 0, and so
rc will never be returned uninitialized. Reported by: Coverity (CID 1394884). This is a false positive though. Sponsored by: Chelsio Communications
This commit is contained in:
parent
036ff794dd
commit
eb6f5d6e72
1 changed files with 1 additions and 0 deletions
|
|
@ -394,6 +394,7 @@ t4_set_sched_queue(struct adapter *sc, struct t4_sched_queue *p)
|
|||
/* Checking VI_INIT_DONE outside a synch-op is a harmless race here. */
|
||||
if (!(vi->flags & VI_INIT_DONE))
|
||||
return (EAGAIN);
|
||||
MPASS(vi->ntxq > 0);
|
||||
|
||||
if (!in_range(p->queue, 0, vi->ntxq - 1) ||
|
||||
!in_range(p->cl, 0, sc->chip_params->nsched_cls - 1))
|
||||
|
|
|
|||
Loading…
Reference in a new issue