]> err.no Git - linux-2.6/blobdiff - kernel/workqueue.c
[PATCH] introduce and use kzalloc
[linux-2.6] / kernel / workqueue.c
index a3de837a8dddf7fc0f10daf53b5d1d5fe90928e8..91bacb13a7e2fec56f5067f12e0b97c1043c30b7 100644 (file)
@@ -308,10 +308,9 @@ struct workqueue_struct *__create_workqueue(const char *name,
        struct workqueue_struct *wq;
        struct task_struct *p;
 
-       wq = kmalloc(sizeof(*wq), GFP_KERNEL);
+       wq = kzalloc(sizeof(*wq), GFP_KERNEL);
        if (!wq)
                return NULL;
-       memset(wq, 0, sizeof(*wq));
 
        wq->name = name;
        /* We don't need the distraction of CPUs appearing and vanishing. */