From: Shmulik Ladkani Date: Sun, 23 Sep 2012 07:52:29 +0000 (+0200) Subject: mtd: cmdlinepart: Simplify parse_cmdline_partitions X-Git-Tag: v3.8-rc1~47^2~95 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=438db5a92b7526a12591f764042528a86d2ebb4b;p=pandora-kernel.git mtd: cmdlinepart: Simplify parse_cmdline_partitions Simply 'parse_cmdline_partitions': the outer loop iterating over 'partitions' is actually a search loop, it does not execute the inner loop for each partition, only for the matched partition. Let's break when search is successful, and move all inner code (relevant only for the matched partition) outside of the outer loop. Resulting code is much more readable, and makes the indent level sane. Signed-off-by: Shmulik Ladkani Signed-off-by: Artem Bityutskiy --- Reading git-diff-tree failed