]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/mtd/rfd_ftl.c
[PATCH] Fix numerous kcalloc() calls, convert to kzalloc()
[net-next-2.6.git] / drivers / mtd / rfd_ftl.c
index fa4362fb4dd8a2b7260b75ae66c0866dcb472233..0f3baa5d9c2a08a147639518f4703251e595b7ad 100644 (file)
@@ -768,7 +768,7 @@ static void rfd_ftl_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd)
        if (mtd->type != MTD_NORFLASH)
                return;
 
-       part = kcalloc(1, sizeof(struct partition), GFP_KERNEL);
+       part = kzalloc(sizeof(struct partition), GFP_KERNEL);
        if (!part)
                return;