From: Peter Korsgaard Date: Thu, 14 Feb 2008 16:00:10 +0000 (+0100) Subject: [MTD] cmdlinepart: Missing partition info is not an error X-Git-Tag: v2.6.26-rc1~1069^2~42 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=b0d06afb60741c19e103ffd60927f68e17c9d199;p=linux-2.6-omap-h63xx.git [MTD] cmdlinepart: Missing partition info is not an error Return 0 partitions instead of -EINVAL on no mtdpart= argument in kernel cmdline or missing partition info for device. Signed-off-by: Peter Korsgaard Acked-by: Stefan Roese Signed-off-by: David Woodhouse --- diff --git a/drivers/mtd/cmdlinepart.c b/drivers/mtd/cmdlinepart.c index 3e090436396..e472a0e9de9 100644 --- a/drivers/mtd/cmdlinepart.c +++ b/drivers/mtd/cmdlinepart.c @@ -310,9 +310,6 @@ static int parse_cmdline_partitions(struct mtd_info *master, struct cmdline_mtd_partition *part; char *mtd_id = master->name; - if(!cmdline) - return -EINVAL; - /* parse command line */ if (!cmdline_parsed) mtdpart_setup_real(cmdline); @@ -343,7 +340,7 @@ static int parse_cmdline_partitions(struct mtd_info *master, return part->num_parts; } } - return -EINVAL; + return 0; }