From ed6611cc8c996a47d334096533caf874a6e27fd7 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Tue, 24 Mar 2020 17:54:34 +0000 Subject: [PATCH] iflib: simplify MPASS assertion Submitted by: andrew --- sys/net/iflib.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/sys/net/iflib.c b/sys/net/iflib.c index 8d9853bad5d..d6494eb89ee 100644 --- a/sys/net/iflib.c +++ b/sys/net/iflib.c @@ -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); }