projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
treewide: kzalloc() -> kcalloc()
[linux-2.6-microblaze.git]
/
drivers
/
mtd
/
ar7part.c
diff --git
a/drivers/mtd/ar7part.c
b/drivers/mtd/ar7part.c
index
90575de
..
fc15ec5
100644
(file)
--- a/
drivers/mtd/ar7part.c
+++ b/
drivers/mtd/ar7part.c
@@
-55,7
+55,7
@@
static int create_mtd_partitions(struct mtd_info *master,
int retries = 10;
struct mtd_partition *ar7_parts;
- ar7_parts = k
zalloc(sizeof(*ar7_parts) * AR7_PARTS
, GFP_KERNEL);
+ ar7_parts = k
calloc(AR7_PARTS, sizeof(*ar7_parts)
, GFP_KERNEL);
if (!ar7_parts)
return -ENOMEM;
ar7_parts[0].name = "loader";