[PATCH v2 3/3] mtd: cmdlinepart: check the partitions

Huang Shijie b32955 at freescale.com
Tue Sep 4 04:25:24 EDT 2012


于 2012年09月04日 16:19, Artem Bityutskiy 写道:
> Just do
>
> if (ret)
> 	return ret;
>
>
> and kill the huge 'switch' that you added.
If the cmdline have two mtd-ids such as:
   
gpmi-nand:100m(root),100m at 100m(kernel),1g at 200m(rootfs);edb7212-nand:-(home)

The `return` will also bypass the `edb7212-nand`.

Is it acceptable?

Best Regards
Huang Shijie




More information about the linux-mtd mailing list