From fc8ae2ec4282de7ec96f48e11078345f3dc0ac3d Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Wed, 20 Mar 2019 17:29:38 +0200 Subject: 10573 define TASKQID_INVALID as (taskq_id)0 Reviewed by: Andy Stormont Reviewed by: Gergő Doma Approved by: Dan McDonald MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- usr/src/uts/common/os/serializer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr/src/uts/common/os/serializer.c') diff --git a/usr/src/uts/common/os/serializer.c b/usr/src/uts/common/os/serializer.c index e5f11fe8b1..aca6ff4b01 100644 --- a/usr/src/uts/common/os/serializer.c +++ b/usr/src/uts/common/os/serializer.c @@ -267,7 +267,7 @@ serializer_enter(serializer_t *s, srproc_t proc, mblk_t *mp, void *arg) */ serializer_enqueue(s, proc, mp, arg); } else { - taskqid_t tid = 0; + taskqid_t tid = TASKQID_INVALID; /* * If the request list is empty, can process right away, @@ -314,7 +314,7 @@ serializer_enter(serializer_t *s, srproc_t proc, mblk_t *mp, void *arg) (task_func_t *) serializer_drain_completely, s, TQ_NOSLEEP | TQ_NOQUEUE); - if (tid != 0) + if (tid != TASKQID_INVALID) s->ser_taskq = B_TRUE; } } -- cgit v1.2.3