From: Kever Yang Date: Fri, 7 Sep 2018 09:37:36 +0000 (+0800) Subject: cmd: part: use MAX_SEARCH_PARTITIONS for part search X-Git-Url: http://git.dujemihanovic.xyz/img/sics.gif?a=commitdiff_plain;h=7e2951160faa73dc27dcd1fb935e462ca9a4c189;p=u-boot.git cmd: part: use MAX_SEARCH_PARTITIONS for part search Use Macro instead of hard code. Signed-off-by: Kever Yang Reviewed-by: Philipp Tomsich --- 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);