]> nv-tegra.nvidia Code Review - linux-2.6.git/blobdiff - drivers/mtd/rfd_ftl.c
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
[linux-2.6.git] / drivers / mtd / rfd_ftl.c
index d60cc6696cbd6cac2778148f7d47c8abce839630..d4b1ba8f23ef40b0dd072fc2c251c46f8f54dc7d 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;