From 47602aa4e9eb67f64db56c4e044b1a3a819a7039 Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Tue, 11 Feb 2020 20:59:41 +0000 Subject: [PATCH] Remove assertion from TASK_INIT() macro, since some users of sys/taskqueue.h may not have includes that define MPASS. It was useful during testing of r357771, but can be omitted now. An invalid value of priority will yield only in potential priority inversion, not a crash. This fixes compilation of ports/x11/nvidia-driver. --- sys/sys/taskqueue.h | 1 - 1 file changed, 1 deletion(-) diff --git a/sys/sys/taskqueue.h b/sys/sys/taskqueue.h index 2be3c96bdae4..f0cc00af986e 100644 --- a/sys/sys/taskqueue.h +++ b/sys/sys/taskqueue.h @@ -121,7 +121,6 @@ void taskqueue_thread_enqueue(void *context); * Initialise a task structure. */ #define TASK_INIT_FLAGS(task, priority, func, context, flags) do { \ - MPASS((priority) >= 0 && (priority) <= 255); \ (task)->ta_pending = 0; \ (task)->ta_priority = (priority); \ (task)->ta_flags = (flags); \