aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bfd/elfxx-riscv.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/bfd/elfxx-riscv.c b/bfd/elfxx-riscv.c
index d74e7a5..2915b74 100644
--- a/bfd/elfxx-riscv.c
+++ b/bfd/elfxx-riscv.c
@@ -2019,14 +2019,11 @@ riscv_parse_subset (riscv_parse_subset_t *rps,
if (p == NULL)
return false;
- /* Parse the different classes of extensions in the specified order. */
- while (*p != '\0')
- {
- p = riscv_parse_prefixed_ext (rps, arch, p);
+ /* Parse prefixed extensions. */
+ p = riscv_parse_prefixed_ext (rps, arch, p);
- if (p == NULL)
- return false;
- }
+ if (p == NULL)
+ return false;
/* Finally add implicit extensions according to the current
extensions. */