From: Deepak Saxena Date: Mon, 7 Nov 2005 09:01:22 +0000 (-0800) Subject: [PATCH] drivers/dio: kmalloc + memset -> kzalloc conversion X-Git-Tag: v2.6.15-rc1~501 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e66860cbda4a1880fa379bee17d6ab926e5cc58e;p=linux-2.6 [PATCH] drivers/dio: kmalloc + memset -> kzalloc conversion Signed-off-by: Deepak Saxena Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/dio/dio.c b/drivers/dio/dio.c index a620f7d9ac..17502d6efa 100644 --- a/drivers/dio/dio.c +++ b/drivers/dio/dio.c @@ -224,11 +224,10 @@ static int __init dio_init(void) set_fs(fs); /* Found a board, allocate it an entry in the list */ - dev = kmalloc(sizeof(struct dio_dev), GFP_KERNEL); + dev = kzalloc(sizeof(struct dio_dev), GFP_KERNEL); if (!dev) return 0; - memset(dev, 0, sizeof(struct dio_dev)); dev->bus = &dio_bus; dev->dev.parent = &dio_bus.dev; dev->dev.bus = &dio_bus_type;