]> git.proxmox.com Git - mirror_zfs.git/blobdiff - lib/libzpool/taskq.c
cstyle: Resolve C style issues
[mirror_zfs.git] / lib / libzpool / taskq.c
index 96c0d5c2be989446a4c8d0e17d64672dc6a4b918..72807f6a3d088507e455bb06f5e8b7156f17ae38 100644 (file)
@@ -157,7 +157,7 @@ taskq_dispatch_delay(taskq_t *tq,  task_func_t func, void *arg, uint_t tqflags,
 int
 taskq_empty_ent(taskq_ent_t *t)
 {
-       return t->tqent_next == NULL;
+       return (t->tqent_next == NULL);
 }
 
 void
@@ -287,7 +287,8 @@ taskq_create(const char *name, int nthreads, pri_t pri,
        tq->tq_maxalloc = maxalloc;
        tq->tq_task.tqent_next = &tq->tq_task;
        tq->tq_task.tqent_prev = &tq->tq_task;
-       tq->tq_threadlist = kmem_alloc(nthreads*sizeof(kthread_t *), KM_SLEEP);
+       tq->tq_threadlist = kmem_alloc(nthreads * sizeof (kthread_t *),
+           KM_SLEEP);
 
        if (flags & TASKQ_PREPOPULATE) {
                mutex_enter(&tq->tq_lock);