diff options
author | Deepak Saxena <dsaxena@plexity.net> | 2005-11-07 10:01:22 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-07 16:53:59 +0100 |
commit | e66860cbda4a1880fa379bee17d6ab926e5cc58e (patch) | |
tree | 0a229d687207384027aea9a19a92c143b755964d | |
parent | [PATCH] drivers/cdrom: kmalloc + memset -> kzalloc conversion (diff) | |
download | linux-e66860cbda4a1880fa379bee17d6ab926e5cc58e.tar.xz linux-e66860cbda4a1880fa379bee17d6ab926e5cc58e.zip |
[PATCH] drivers/dio: kmalloc + memset -> kzalloc conversion
Signed-off-by: Deepak Saxena <dsaxena@plexity.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | drivers/dio/dio.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/dio/dio.c b/drivers/dio/dio.c index a620f7d9ac8e..17502d6efae7 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; |