diff options
author | Shmulik Ladkani <shmulik.ladkani@gmail.com> | 2012-09-23 11:52:29 +0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-11-15 17:37:45 +0400 |
commit | 438db5a92b7526a12591f764042528a86d2ebb4b (patch) | |
tree | 22dfe6e013b16e8d732e6663faf7514d8377a295 /crypto/xcbc.c | |
parent | 6924d99fcdf1a688538a3cdebd1f135c22eec191 (diff) | |
download | linux-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 'crypto/xcbc.c')
0 files changed, 0 insertions, 0 deletions