[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>
This commit is contained in:

committed by
Linus Torvalds

parent
49d0c6039d
commit
9c2153844d
@@ -715,7 +715,6 @@ edd_device_register(struct edd_device *edev, int i)
|
||||
|
||||
if (!edev)
|
||||
return 1;
|
||||
memset(edev, 0, sizeof (*edev));
|
||||
edd_dev_set_info(edev, i);
|
||||
kobject_set_name(&edev->kobj, "int13_dev%02x",
|
||||
0x80 + i);
|
||||
@@ -756,7 +755,7 @@ edd_init(void)
|
||||
return rc;
|
||||
|
||||
for (i = 0; i < edd_num_devices() && !rc; i++) {
|
||||
edev = kmalloc(sizeof (*edev), GFP_KERNEL);
|
||||
edev = kzalloc(sizeof (*edev), GFP_KERNEL);
|
||||
if (!edev)
|
||||
return -ENOMEM;
|
||||
|
||||
|
Reference in New Issue
Block a user