projects/linux·commit e66860cb

[PATCH] drivers/dio: kmalloc + memset -> kzalloc conversion

e66860cb · Deepak Saxena <[email protected]> · 2005-11-07 01:01:22 -08:00

Signed-off-by: Deepak Saxena <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
e66860cbda4a1880fa379bee17d6ab926e5cc58e
Parents
5c857eeb

Changes

1 files changed · +1 −2

FileStatusAddDelContent
drivers/dio/dio.cmodified+1−2View file

drivers/dio/dio.c

View file
diff --git a/drivers/dio/dio.c b/drivers/dio/dio.c
index a620f7d..17502d6 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;