mtd: cmdlinepart: skip partitions truncated to zero
authorChristopher Cordahi <christophercordahi@nanometrics.ca>
Mon, 17 Dec 2012 00:59:30 +0000 (19:59 -0500)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Mon, 4 Feb 2013 07:26:28 +0000 (09:26 +0200)
commitebf4f0707df410a7666ec409ee68dc068db56e97
tree88ae2ac1af8fab58c2764f49fba1a2dd4ab5e4d5
parente25e0a4de1237972a86e5831c8659c4068ff23f7
mtd: cmdlinepart: skip partitions truncated to zero

Perform flash size truncation before skipping zero sized partition
so that if the result is a zero sized, it will be skipped like the
others.

Signed-off-by: Christopher Cordahi <christophercordahi@nanometrics.ca>
Acked-by: Shmulik Ladkani <shmulik.ladkani@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
drivers/mtd/cmdlinepart.c