[MTD][MTDPART] Seperate main loop from per-partition code in add_mtd_partition
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Fri, 18 Jul 2008 16:00:18 +0000 (01:00 +0900)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 25 Jul 2008 13:59:11 +0000 (09:59 -0400)
add_mtd_partition was a 150+ line monster consisting mostly of a single
loop.  Seperate the loop from most of the body.  Now it should be
obvious which variables are carried around from iteration to iteration.

Signed-off-by: Jörn Engel <joern@logfs.org>
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>

No differences found