diff options
author | Kever Yang <kever.yang@rock-chips.com> | 2018-09-07 12:37:36 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-09-11 04:19:33 +0300 |
commit | 7e2951160faa73dc27dcd1fb935e462ca9a4c189 (patch) | |
tree | f6d9ed6018ab15721a04056ff0f0c9346f26912b /cmd/part.c | |
parent | d22336aad945f8f67e2c985cea9220c3a559b909 (diff) | |
download | u-boot-7e2951160faa73dc27dcd1fb935e462ca9a4c189.tar.xz |
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>
Diffstat (limited to 'cmd/part.c')
-rw-r--r-- | cmd/part.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/part.c b/cmd/part.c index bee204fff0..bfb6488b0f 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); |