iflib: simplify MPASS assertion

Submitted by:	andrew
This commit is contained in:
Ed Maste 2020-03-24 17:54:34 +00:00
parent 68af0153a7
commit ed6611cc8c

View File

@ -6193,14 +6193,8 @@ iflib_rx_intr_deferred(if_ctx_t ctx, int rxqid)
void
iflib_admin_intr_deferred(if_ctx_t ctx)
{
#ifdef INVARIANTS
struct grouptask *gtask;
gtask = &ctx->ifc_admin_task;
MPASS(gtask != NULL);
MPASS(gtask->gt_taskqueue != NULL);
#endif
MPASS(ctx->ifc_admin_task.gt_taskqueue != NULL);
GROUPTASK_ENQUEUE(&ctx->ifc_admin_task);
}