[adm5120] add support for GPIO IRQs
[openwrt.git] / target / linux / adm5120 / files / drivers / mtd / myloader.c
index ad207e5..24d41c5 100644 (file)
@@ -54,7 +54,6 @@ int parse_myloader_partitions(struct mtd_info *master,
        int num_parts;
        int ret, i;
        size_t retlen;
-       size_t parts_len;
        char *names;
        unsigned long offset;
        unsigned long blocklen;
@@ -104,8 +103,8 @@ int parse_myloader_partitions(struct mtd_info *master,
                num_parts++;
        }
 
-       mtd_parts = kzalloc((num_parts*sizeof(*mtd_part) + num_parts*NAME_LEN_MAX),
-                        GFP_KERNEL);
+       mtd_parts = kzalloc((num_parts * sizeof(*mtd_part) +
+                               num_parts * NAME_LEN_MAX), GFP_KERNEL);
 
        if (!mtd_parts) {
                ret = -ENOMEM;
This page took 0.02343 seconds and 4 git commands to generate.