diff mbox

[RFT/RFC/PATCH,06/10] cbus: switch to kzalloc

Message ID 1259793352-29864-7-git-send-email-felipe.balbi@nokia.com (mailing list archive)
State Accepted
Commit b57560b33964a00931ebde9deb6d99eb5172f1c2
Delegated to: Tony Lindgren
Headers show

Commit Message

Felipe Balbi Dec. 2, 2009, 10:35 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/cbus/cbus.c b/drivers/cbus/cbus.c
index c80cede..0bcc211 100644
--- a/drivers/cbus/cbus.c
+++ b/drivers/cbus/cbus.c
@@ -224,12 +224,10 @@  int __init cbus_bus_init(void)
 	struct cbus_host *chost;
 	int ret;
 
-	chost = kmalloc(sizeof (*chost), GFP_KERNEL);
+	chost = kzalloc(sizeof (*chost), GFP_KERNEL);
 	if (chost == NULL)
 		return -ENOMEM;
 
-	memset(chost, 0, sizeof (*chost));
-
 	spin_lock_init(&chost->lock);
 
 	/* REVISIT: Pass these from board-*.c files in platform_data */