diff options
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/kern/subr_clist.c | 4 | ||||
| -rw-r--r-- | sys/kern/subr_taskqueue.c | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/sys/kern/subr_clist.c b/sys/kern/subr_clist.c index 65a03b82a18c..f159ed41041a 100644 --- a/sys/kern/subr_clist.c +++ b/sys/kern/subr_clist.c @@ -43,7 +43,7 @@ SYSINIT(clist, SI_SUB_CLIST, SI_ORDER_FIRST, clist_init, NULL); static MALLOC_DEFINE(M_CLIST, "clist", "clist queue blocks"); -static struct cblock *cfreelist = 0; +static struct cblock *cfreelist = NULL; int cfreecount = 0; static int cslushcount; static int ctotcount; @@ -478,7 +478,7 @@ b_to_q(char *src, int amount, struct clist *clistp) int unputc(struct clist *clistp) { - struct cblock *cblockp = 0, *cbp = 0; + struct cblock *cblockp = NULL, *cbp = NULL; int s; int chr = -1; diff --git a/sys/kern/subr_taskqueue.c b/sys/kern/subr_taskqueue.c index 050d7131fb16..9059a154455c 100644 --- a/sys/kern/subr_taskqueue.c +++ b/sys/kern/subr_taskqueue.c @@ -114,7 +114,7 @@ _taskqueue_create(const char *name, int mflags, queue = malloc(sizeof(struct taskqueue), M_TASKQUEUE, mflags | M_ZERO); if (!queue) - return 0; + return NULL; STAILQ_INIT(&queue->tq_queue); queue->tq_name = name; @@ -213,7 +213,7 @@ taskqueue_enqueue(struct taskqueue *queue, struct task *task) if (!prev || prev->ta_priority >= task->ta_priority) { STAILQ_INSERT_TAIL(&queue->tq_queue, task, ta_link); } else { - prev = 0; + prev = NULL; for (ins = STAILQ_FIRST(&queue->tq_queue); ins; prev = ins, ins = STAILQ_NEXT(ins, ta_link)) if (ins->ta_priority < task->ta_priority) @@ -423,11 +423,11 @@ taskqueue_thread_enqueue(void *context) wakeup_one(tq); } -TASKQUEUE_DEFINE(swi, taskqueue_swi_enqueue, 0, +TASKQUEUE_DEFINE(swi, taskqueue_swi_enqueue, NULL, swi_add(NULL, "task queue", taskqueue_swi_run, NULL, SWI_TQ, INTR_MPSAFE, &taskqueue_ih)); -TASKQUEUE_DEFINE(swi_giant, taskqueue_swi_giant_enqueue, 0, +TASKQUEUE_DEFINE(swi_giant, taskqueue_swi_giant_enqueue, NULL, swi_add(NULL, "Giant taskq", taskqueue_swi_giant_run, NULL, SWI_TQ_GIANT, 0, &taskqueue_giant_ih)); @@ -462,6 +462,6 @@ taskqueue_fast_run(void *dummy) taskqueue_run(taskqueue_fast); } -TASKQUEUE_FAST_DEFINE(fast, taskqueue_fast_enqueue, 0, +TASKQUEUE_FAST_DEFINE(fast, taskqueue_fast_enqueue, NULL, swi_add(NULL, "Fast task queue", taskqueue_fast_run, NULL, SWI_TQ_FAST, INTR_MPSAFE, &taskqueue_fast_ih)); |
