svn commit: r359274 - head/sys/net
Ed Maste
emaste at FreeBSD.org
Tue Mar 24 17:54:44 UTC 2020
Author: emaste
Date: Tue Mar 24 17:54:34 2020
New Revision: 359274
URL: https://svnweb.freebsd.org/changeset/base/359274
Log:
iflib: simplify MPASS assertion
Submitted by: andrew
Modified:
head/sys/net/iflib.c
Modified: head/sys/net/iflib.c
==============================================================================
--- head/sys/net/iflib.c Tue Mar 24 17:25:56 2020 (r359273)
+++ head/sys/net/iflib.c Tue Mar 24 17:54:34 2020 (r359274)
@@ -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);
}
More information about the svn-src-head
mailing list