aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKever Yang2018-09-07 17:37:36 +0800
committerTom Rini2018-09-10 21:19:33 -0400
commit7e2951160faa73dc27dcd1fb935e462ca9a4c189 (patch)
treef6d9ed6018ab15721a04056ff0f0c9346f26912b
parentd22336aad945f8f67e2c985cea9220c3a559b909 (diff)
cmd: part: use MAX_SEARCH_PARTITIONS for part search
Use Macro instead of hard code. Signed-off-by: Kever Yang <kever.yang@rock-chips.com> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
-rw-r--r--cmd/part.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/part.c b/cmd/part.c
index bee204fff06..bfb6488b0f2 100644
--- a/cmd/part.c
+++ b/cmd/part.c
@@ -90,7 +90,7 @@ static int do_part_list(int argc, char * const argv[])
char str[512] = { '\0', };
disk_partition_t info;
- for (p = 1; p < 128; p++) {
+ for (p = 1; p < MAX_SEARCH_PARTITIONS; p++) {
char t[5];
int r = part_get_info(desc, p, &info);