diff options
author | Deepak Saxena <dsaxena@plexity.net> | 2005-11-07 04:01:24 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-07 10:54:00 -0500 |
commit | 9c2153844d72ac92b6da0ee42f7f81fb0aa91f8a (patch) | |
tree | 77da7b9ea21ae365273973a20c1cec349c570f22 /drivers/firmware/edd.c | |
parent | 49d0c6039dd36791cad36624e68bce5fe011bf12 (diff) |
[PATCH] drivers/firmware: 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>
Diffstat (limited to 'drivers/firmware/edd.c')
-rw-r--r-- | drivers/firmware/edd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/firmware/edd.c b/drivers/firmware/edd.c index 6996476669f1..b4502ed65793 100644 --- a/drivers/firmware/edd.c +++ b/drivers/firmware/edd.c | |||
@@ -715,7 +715,6 @@ edd_device_register(struct edd_device *edev, int i) | |||
715 | 715 | ||
716 | if (!edev) | 716 | if (!edev) |
717 | return 1; | 717 | return 1; |
718 | memset(edev, 0, sizeof (*edev)); | ||
719 | edd_dev_set_info(edev, i); | 718 | edd_dev_set_info(edev, i); |
720 | kobject_set_name(&edev->kobj, "int13_dev%02x", | 719 | kobject_set_name(&edev->kobj, "int13_dev%02x", |
721 | 0x80 + i); | 720 | 0x80 + i); |
@@ -756,7 +755,7 @@ edd_init(void) | |||
756 | return rc; | 755 | return rc; |
757 | 756 | ||
758 | for (i = 0; i < edd_num_devices() && !rc; i++) { | 757 | for (i = 0; i < edd_num_devices() && !rc; i++) { |
759 | edev = kmalloc(sizeof (*edev), GFP_KERNEL); | 758 | edev = kzalloc(sizeof (*edev), GFP_KERNEL); |
760 | if (!edev) | 759 | if (!edev) |
761 | return -ENOMEM; | 760 | return -ENOMEM; |
762 | 761 | ||