]> Pileus Git - ~andy/linux/blobdiff - block/deadline-iosched.c
Slab allocators: Replace explicit zeroing with __GFP_ZERO
[~andy/linux] / block / deadline-iosched.c
index 6d673e938d3eb66c3bb68f0d5f7975e88487fd77..87ca02ac84cb1d5a6f77f5377c6ec8f4e7492d55 100644 (file)
@@ -360,10 +360,9 @@ static void *deadline_init_queue(request_queue_t *q)
 {
        struct deadline_data *dd;
 
-       dd = kmalloc_node(sizeof(*dd), GFP_KERNEL, q->node);
+       dd = kmalloc_node(sizeof(*dd), GFP_KERNEL | __GFP_ZERO, q->node);
        if (!dd)
                return NULL;
-       memset(dd, 0, sizeof(*dd));
 
        INIT_LIST_HEAD(&dd->fifo_list[READ]);
        INIT_LIST_HEAD(&dd->fifo_list[WRITE]);