[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)
commit7788ba71a6046de1b70e7dd45ed0bc5768a4bbd9
treec568874dc1b3e1a25c82becf64e1fae788377768
parent4b5e33a7bf185c8d8568a807d9805fb155bcedd9
[MTD][MTDPART] Seperate main loop from per-partition code in add_mtd_partition

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>
drivers/mtd/mtdpart.c