|
@@ -310,9 +310,6 @@ static int parse_cmdline_partitions(struct mtd_info *master,
|
|
struct cmdline_mtd_partition *part;
|
|
struct cmdline_mtd_partition *part;
|
|
char *mtd_id = master->name;
|
|
char *mtd_id = master->name;
|
|
|
|
|
|
- if(!cmdline)
|
|
|
|
- return -EINVAL;
|
|
|
|
-
|
|
|
|
/* parse command line */
|
|
/* parse command line */
|
|
if (!cmdline_parsed)
|
|
if (!cmdline_parsed)
|
|
mtdpart_setup_real(cmdline);
|
|
mtdpart_setup_real(cmdline);
|
|
@@ -343,7 +340,7 @@ static int parse_cmdline_partitions(struct mtd_info *master,
|
|
return part->num_parts;
|
|
return part->num_parts;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- return -EINVAL;
|
|
|
|
|
|
+ return 0;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|