diff options
author | Shmulik Ladkani <shmulik.ladkani@gmail.com> | 2012-09-23 07:52:29 (GMT) |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-11-15 13:37:45 (GMT) |
commit | 438db5a92b7526a12591f764042528a86d2ebb4b (patch) | |
tree | 22dfe6e013b16e8d732e6663faf7514d8377a295 /drivers/mtd/nand/gpmi-nand | |
parent | 6924d99fcdf1a688538a3cdebd1f135c22eec191 (diff) | |
download | linux-fsl-qoriq-438db5a92b7526a12591f764042528a86d2ebb4b.tar.xz |
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 <shmulik.ladkani@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'drivers/mtd/nand/gpmi-nand')
0 files changed, 0 insertions, 0 deletions