change kmalloc() + memset() to kzalloc(), no functional changes. Signed-off-by: Felipe Balbi <felipe.balbi@xxxxxxxxx> --- drivers/cbus/cbus.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) 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 */ -- 1.6.6.rc0 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html