diff options
Diffstat (limited to 'drivers/mtd/cmdlinepart.c')
-rw-r--r-- | drivers/mtd/cmdlinepart.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/mtd/cmdlinepart.c b/drivers/mtd/cmdlinepart.c index 3e090436396d..e472a0e9de9d 100644 --- a/drivers/mtd/cmdlinepart.c +++ b/drivers/mtd/cmdlinepart.c | |||
@@ -310,9 +310,6 @@ static int parse_cmdline_partitions(struct mtd_info *master, | |||
310 | struct cmdline_mtd_partition *part; | 310 | struct cmdline_mtd_partition *part; |
311 | char *mtd_id = master->name; | 311 | char *mtd_id = master->name; |
312 | 312 | ||
313 | if(!cmdline) | ||
314 | return -EINVAL; | ||
315 | |||
316 | /* parse command line */ | 313 | /* parse command line */ |
317 | if (!cmdline_parsed) | 314 | if (!cmdline_parsed) |
318 | mtdpart_setup_real(cmdline); | 315 | mtdpart_setup_real(cmdline); |
@@ -343,7 +340,7 @@ static int parse_cmdline_partitions(struct mtd_info *master, | |||
343 | return part->num_parts; | 340 | return part->num_parts; |
344 | } | 341 | } |
345 | } | 342 | } |
346 | return -EINVAL; | 343 | return 0; |
347 | } | 344 | } |
348 | 345 | ||
349 | 346 | ||