Subject: [merged] drivers-parport-use-kzalloc.patch removed from -mm tree To: gheorghiuandru@xxxxxxxxx,mm-commits@xxxxxxxxxxxxxxx From: akpm@xxxxxxxxxxxxxxxxxxxx Date: Mon, 08 Jul 2013 12:37:04 -0700 The patch titled Subject: drivers/parport/share.c: use kzalloc has been removed from the -mm tree. Its filename was drivers-parport-use-kzalloc.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ From: Alexandru Gheorghiu <gheorghiuandru@xxxxxxxxx> Subject: drivers/parport/share.c: use kzalloc Replaced calls to kmalloc and memset with kzalloc. Patch found using coccinelle. Signed-off-by: Alexandru Gheorghiu <gheorghiuandru@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/parport/share.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff -puN drivers/parport/share.c~drivers-parport-use-kzalloc drivers/parport/share.c --- a/drivers/parport/share.c~drivers-parport-use-kzalloc +++ a/drivers/parport/share.c @@ -282,14 +282,13 @@ struct parport *parport_register_port(un int device; char *name; - tmp = kmalloc(sizeof(struct parport), GFP_KERNEL); + tmp = kzalloc(sizeof(struct parport), GFP_KERNEL); if (!tmp) { printk(KERN_WARNING "parport: memory squeeze\n"); return NULL; } /* Init our structure */ - memset(tmp, 0, sizeof(struct parport)); tmp->base = base; tmp->irq = irq; tmp->dma = dma; _ Patches currently in -mm which might be from gheorghiuandru@xxxxxxxxx are origin.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html